Open matteosuppo opened 8 years ago
hi matteosuppo
Sorry only just seen this, will have a look as soon as I can. Can you provide a bit more context around what you're trying to do please? Maybe the ecs section of drone.yml too?
Cheers Paul
Sure:
deploy:
ecs:
image: arduino/drone-ecs-node
access_key: $$ECR_ACCESS
secret_key: $$ECR_SECRET
region: us-east-1
cluster: auth-$${TAG:4}
family: id-$${TAG:4}
container_names:
- id-$${TAG:4}
image_name: $$ECS_IMAGE
image_tag: "$$TAG"
service: id-$${TAG:4}
task_definition: false
disable_dry_run: true
Basically we had to explictly set task_definition: false or it would give the error above.
I think it's because in https://github.com/fridaystreet/drone-ecs-node/blob/master/app.js#L840 it's not checking for an undefined
value.
If you leave out the task_definition option it registers as
undefined
instead ofnull
ans so the plugin crashes with