Closed Woitekku closed 4 years ago
Hi @WojciechCichy, could you share the part of your config where you are invoking update-task-definition
, to help us troubleshoot?
Hi @lokst, here it is:
[...]
update_task_definition:
executor: python
resource_class: small
parameters:
family:
type: string
container_name:
type: string
steps:
- aws-ecs/update-task-definition:
aws-access-key-id: AWS_ACCESS_KEY_ID
aws-region: AWS_REGION
aws-secret-access-key: AWS_SECRET_ACCESS_KEY
container-image-name-updates: 'container=<< parameters.container_name >>,tag=${CIRCLE_SHA1}'
family: << parameters.family >>
[...]
As you can see I put there default variable values configured at CircleCi project level. I would except that since ORB allows to provide AWS-defined credentials, I do not need to install aws-cli separately.
Here is the code that works
[...]
update_task_definition:
executor: python
resource_class: small
parameters:
family:
type: string
container_name:
type: string
steps:
- aws-cli/install
- aws-ecs/update-task-definition:
container-image-name-updates: 'container=<< parameters.container_name >>,tag=${CIRCLE_SHA1}'
family: << parameters.family >>
[...]
@WojciechCichy Sorry for the delay in response. It looks like you are invoking the update-task-definition
command with parameters (aws-access-key-id, aws-secret-access-key and aws-region) that don't exist. You can check the available parameters for the command on: https://circleci.com/orbs/registry/orb/circleci/aws-ecs
Orb version
1.2.0
What happened
During update-task-definition, when aws-access-key-id, aws-secret-access-key and aws-region are specified, it throws an error:
Expected behavior
Not throwing an error and accept the variables as specified in the documentation.