josmo / drone-ecs

Drone plugin for triggering Amazon EC2 Container Service (ECS) deployments
Apache License 2.0
30 stars 41 forks source link

InvalidParameterException when using plugin with fargate #57

Open Rainson12 opened 3 years ago

Rainson12 commented 3 years ago

We have an issue when running the plugin. We always get the exception "InvalidParameterException" although all parameters have been specified. The Task definition will be created by a cloud formation script and therefore must not be created by the plugin. However we still get the InvalidParameterException and we can not figure out how to fix it. This is our config:

- name: dev:fargate:deploy
   image: pelotech/drone-ecs
   settings:
    region: us-east-1
    family: IndiAuthTaskDefinition
    docker_image: xxxx.dkr.ecr.us-east-1.amazonaws.com/xxxxx-backend
    tag: latest
    service: IndiauthService
    cluster: IndiauthCluster
    container_name: IndiauthContainerDefinition
    deployment_configuration: 50 200
    access_key:
        from_secret: DEV_AWS_ACCESS_KEY_ID
    secret_key:
      from_secret: DEV_AWS_SECRET_ACCESS_KEY
jtallinger commented 3 years ago

I faced similar issue with "InvalidParameterException" and it was not easy to trace down, in the end I found the error by looking through the API calls in AWS console (Cloudtrail). In my case it was due to service was setup with bridge network and I tried to deploy the task with awsvpc. Error was not in the plugin, but in the AWS end rejecting the config.