Skip to content

Commit b8ed527

Browse files
author
mike dupont
committed
add policy for push
1 parent 0415766 commit b8ed527

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

examples/complete/main.tf

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
# this creates the role/github
22

33
provider "aws" {
44
region = var.region
@@ -131,7 +131,24 @@ resource "aws_iam_policy" "terraform_pike" {
131131
"Resource": [
132132
"*"
133133
]
134-
}
134+
},
135+
{
136+
"Effect": "Allow",
137+
"Action": [
138+
"ecr:CompleteLayerUpload",
139+
"ecr:UploadLayerPart",
140+
"ecr:InitiateLayerUpload",
141+
"ecr:BatchCheckLayerAvailability",
142+
"ecr:PutImage",
143+
"ecr:BatchGetImage"
144+
],
145+
"Resource": "arn:aws:ecr:us-east-2:916723593639:swarms/mcs"
146+
},
147+
{
148+
"Effect": "Allow",
149+
"Action": "ecr:GetAuthorizationToken",
150+
"Resource": "*"
151+
}
135152
]
136153
}
137154
)

0 commit comments

Comments
 (0)