Closed unfor19 closed 4 years ago
So apparently it's not the credentials. Something is missing in my .drone.yml
. According to the main README.md, I only need to supply:
-e PLUGIN_ACCESS_KEY=<key> \
-e PLUGIN_SECRET_KEY=<secret> \
-e PLUGIN_SERVICE=<service> \
-e PLUGIN_DOCKER_IMAGE=<image>
I do that in my YML, so what am I missing?
- name: deploy_to_ecs
image: pelotech/drone-ecs
pull: always
environment:
AWS_ACCESS_KEY:
from_secret: aws_access_key_id
AWS_SECRET_KEY:
from_secret: aws_secret_access_key
settings:
cluster: dev-cluster
service: dev-service
deployment_configuration: 100 200
docker_image: 1234567890.dkr.ecr.eu-west-1.amazonaws.com/some-image
region: eu-west-1
The issue appears to be related to the fact that I'm using FARGATE, I haven't provided some variables that are mandatory
I gave up
Hi, I read the docs and also checked
main.go
andplugin.go
.I've created two organization secrets in drone,
aws_access_key_id
andaws_secret_access_key
, I'm already using them in many pipelines/steps, but it seems like they don't work with this plugin.My
.drone.yml
snippetAccording to the code, I can see that if I don't pass
access_key
andsecret_key
, that's ok, as long as I setAWS_ACCESS_KEY
andAWS_SECRET_KEY
.Here's the error I get when using the snippet above
According to the plugin, it should work - main.go - Ref
And a reference of where the creds are fetched - plugin.go - Ref