File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -307,6 +307,17 @@ ECS_template_create_register() {
307307 template=$( echo $template | jq --arg image $AWS_ACCOUNT_ID .dkr.ecr.$AWS_REGION .amazonaws.com/$AWS_REPOSITORY :$ECS_TAG ' .containerDefinitions[0].image=$image' )
308308 log " ECR Image name updated"
309309
310+ # Container readonlyRootFilesystem
311+ if [ -z $AWS_ECS_READONLY_ROOTFILESYSTEM ];
312+ then
313+ log " No ECS readonlyRootFilesystem defined. Going with default value as true"
314+ AWS_ECS_READONLY_ROOTFILESYSTEM=true
315+ template=$( echo $template | jq --argjson readonlyRootFilesystem $AWS_ECS_READONLY_ROOTFILESYSTEM ' .containerDefinitions[0].readonlyRootFilesystem=$readonlyRootFilesystem' )
316+ else
317+ template=$( echo $template | jq --argjson readonlyRootFilesystem $AWS_ECS_READONLY_ROOTFILESYSTEM ' .containerDefinitions[0].readonlyRootFilesystem=$readonlyRootFilesystem' )
318+ fi
319+ log " ECS readonlyRootFilesystem updated."
320+
310321 # Container Memory reservation
311322 if [ -z $AWS_ECS_CONTAINER_MEMORY_RESERVATION ];
312323 then
You can’t perform that action at this time.
0 commit comments