Skip to content

Instantly share code, notes, and snippets.

@okram999
Created April 12, 2019 14:33
Show Gist options
  • Save okram999/0d4f37f90f72acc1dd24f4fcf09472c3 to your computer and use it in GitHub Desktop.
Save okram999/0d4f37f90f72acc1dd24f4fcf09472c3 to your computer and use it in GitHub Desktop.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"secretsmanager:Describe*",
"secretsmanager:List*",
"secretsmanager:Get*"
],
"Resource": "*",
"Condition": {
"StringEquals": {
"secretsmanager:ResourceTag/APP": "devtest",
"secretsmanager:ResourceTag/ENV": "Non-Prod"
}
}
},
{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": [
"logs:CreateLogStream",
"ecr:GetDownloadUrlForLayer",
"ecr:BatchGetImage",
"ecr:GetAuthorizationToken",
"logs:PutLogEvents",
"ecr:BatchCheckLayerAvailability"
],
"Resource": "*"
},
{
"Sid": "VisualEditor2",
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:ListBucketVersions",
"s3:CreateBucket",
"s3:ListBucket",
"s3:DeleteBucket"
],
"Resource": "arn:aws:s3:::devtest-nonprod-*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment