Skip to content

Instantly share code, notes, and snippets.

@McKlayne
Created December 16, 2020 04:09
Show Gist options
  • Save McKlayne/db29a2243e489b0a7f4f0a19274a03ab to your computer and use it in GitHub Desktop.
Save McKlayne/db29a2243e489b0a7f4f0a19274a03ab to your computer and use it in GitHub Desktop.
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "new statement",
"Effect": "Allow",
"Principal": {
"AWS": [
***Your AWS Entities
]
},
"Action": [
"ecr:CompleteLayerUpload",
"ecr:InitiateLayerUpload",
"ecr:PutImage",
"ecr:UploadLayerPart"
]
},
{
"Sid": "LambdaECRImageRetrievalPolicy",
"Effect": "Allow",
"Principal": {
"Service": "lambda.amazonaws.com"
},
"Action": [
"ecr:BatchGetImage",
"ecr:DeleteRepositoryPolicy",
"ecr:GetDownloadUrlForLayer",
"ecr:GetRepositoryPolicy",
"ecr:SetRepositoryPolicy"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment