From e24ea099dbf34e92148f4e2c997e26e639cd9b7e Mon Sep 17 00:00:00 2001 From: Kevin Kortum Date: Tue, 24 Sep 2024 19:02:12 +0200 Subject: [PATCH] feat(update_service): allow to override aws region by parameter (#219) * feat(update_service): allow to override aws region by parameter * fix: add missing closing parantheses --- src/commands/update_service.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/commands/update_service.yml b/src/commands/update_service.yml index 4790a7e..1ccf54e 100644 --- a/src/commands/update_service.yml +++ b/src/commands/update_service.yml @@ -1,6 +1,10 @@ description: > Registers a task definition for the given ECS service and updates the service to use it. Optionally polls the status of the deployment until the created task definition revision has reached its desired running task count and is the only revision deployed for the service. parameters: + region: + description: AWS region to use for looking up task definitions. + type: string + default: $AWS_DEFAULT_REGION family: description: Name of the task definition's family. type: string @@ -207,7 +211,7 @@ steps: --output text \ --query 'taskDefinition.taskDefinitionArn' \ --profile << parameters.profile_name >> \ - --region ${AWS_DEFAULT_REGION}) + --region << parameters.region >>) echo "export CCI_ORB_AWS_ECS_REGISTERED_TASK_DFN='${TASK_DEFINITION_ARN}'" >> $BASH_ENV - when: condition: << parameters.task_definition_tags >>