From 50394b2fea5375d802e4b37a5950610411132f37 Mon Sep 17 00:00:00 2001 From: Claude-GP Date: Wed, 8 May 2024 10:25:02 -0400 Subject: [PATCH] add systemControls to omit key --- src/build-task-definition.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build-task-definition.sh b/src/build-task-definition.sh index 7bd847b..13313d2 100755 --- a/src/build-task-definition.sh +++ b/src/build-task-definition.sh @@ -5,7 +5,7 @@ get_task_definition() { task_name=$1 # Thoses keys are returned by the Amazon ECS DescribeTaskDefinition, but are not valid fields when registering a new task definition - keys_to_omit=".compatibilities, .taskDefinitionArn, .requiresAttributes, .revision, .status, .registeredBy, .registeredAt" + keys_to_omit=".compatibilities, .taskDefinitionArn, .requiresAttributes, .revision, .status, .registeredBy, .registeredAt, .containerDefinitions[].systemControls" returned_task_definition=$(aws ecs describe-task-definition --task-definition "${task_name}" | jq .taskDefinition | jq "del($keys_to_omit)") if [ -z "${returned_task_definition}" ]; then