Created
May 20, 2021 11:11
-
-
Save breiter/996e1b5fd47055b18cc6bc74299d8ea7 to your computer and use it in GitHub Desktop.
IAM policy for GitHub Action deployment to ECS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "GetAuthorizationToken", | |
"Effect": "Allow", | |
"Action": [ | |
"ecr:GetAuthorizationToken" | |
], | |
"Resource": "*" | |
}, | |
{ | |
"Sid": "AllowPush", | |
"Effect": "Allow", | |
"Action": [ | |
"ecr:GetDownloadUrlForLayer", | |
"ecr:BatchGetImage", | |
"ecr:BatchCheckLayerAvailability", | |
"ecr:PutImage", | |
"ecr:InitiateLayerUpload", | |
"ecr:UploadLayerPart", | |
"ecr:CompleteLayerUpload" | |
], | |
"Resource": "*" | |
}, | |
{ | |
"Sid": "RegisterTaskDefinition", | |
"Effect": "Allow", | |
"Action": [ | |
"ecs:RegisterTaskDefinition", | |
"ecs:DescribeTaskDefinition" | |
], | |
"Resource": "*" | |
}, | |
{ | |
"Sid": "PassRolesInTaskDefinition", | |
"Effect": "Allow", | |
"Action": [ | |
"iam:PassRole" | |
], | |
"Resource": "*" | |
}, | |
{ | |
"Sid": "DeployService", | |
"Effect": "Allow", | |
"Action": [ | |
"ecs:UpdateService", | |
"ecs:DescribeServices" | |
], | |
"Resource": "*" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment