File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
ansible/roles/create-api-deployment-pre-reqs/templates/terraform Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,8 @@ data "aws_iam_policy_document" "ecs-execution-role" {
6969 " ecr:DescribeRepositories" ,
7070 " ecr:ListImages" ,
7171 " ecr:DescribeImages" ,
72+ " ecr:GetLifecyclePolicy" ,
73+ " ecr:PutLifecyclePolicy" ,
7274 " s3:GetObject"
7375 ]
7476
@@ -173,6 +175,18 @@ data "aws_iam_policy_document" "deploy-user" {
173175
174176 }
175177
178+ statement {
179+ actions = [
180+ " ecr:GetLifecyclePolicy" ,
181+ " ecr:PutLifecyclePolicy"
182+ ]
183+
184+ resources = [
185+ " arn:aws:ecr:${ local . region } :${ local . account_id } :repository/${ var . service_id } " ,
186+ " arn:aws:ecr:${ local . region } :${ local . account_id } :repository/${ var . service_id } _*"
187+ ]
188+ }
189+
176190 statement {
177191 actions = [
178192 " s3:ListBucket" ,
You can’t perform that action at this time.
0 commit comments