Created
July 2, 2020 07:22
-
-
Save velotiotech/e938baad91a45b341fae116a7b430d91 to your computer and use it in GitHub Desktop.
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": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"iam:AttachRolePolicy", | |
"iam:CreateRole", | |
"iam:GetRole", | |
"iam:PutRolePolicy" | |
], | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"iam:PassRole" | |
], | |
"Resource": [ | |
"arn:aws:iam:::role/*-ZappaLambdaExecutionRole" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"apigateway:DELETE", | |
"apigateway:GET", | |
"apigateway:PATCH", | |
"apigateway:POST", | |
"apigateway:PUT", | |
"events:DeleteRule", | |
"events:DescribeRule", | |
"events:ListRules", | |
"events:ListTargetsByRule", | |
"events:ListRuleNamesByTarget", | |
"events:PutRule", | |
"events:PutTargets", | |
"events:RemoveTargets", | |
"lambda:AddPermission", | |
"lambda:CreateFunction", | |
"lambda:DeleteFunction", | |
"lambda:GetFunction", | |
"lambda:GetPolicy", | |
"lambda:ListVersionsByFunction", | |
"lambda:RemovePermission", | |
"lambda:UpdateFunctionCode", | |
"lambda:UpdateFunctionConfiguration", | |
"cloudformation:CreateStack", | |
"cloudformation:DeleteStack", | |
"cloudformation:DescribeStackResource", | |
"cloudformation:DescribeStacks", | |
"cloudformation:ListStackResources", | |
"cloudformation:UpdateStack", | |
"logs:DescribeLogStreams", | |
"logs:FilterLogEvents", | |
"route53:ListHostedZones", | |
"route53:ChangeResourceRecordSets", | |
"route53:GetHostedZone", | |
"s3:CreateBucket", | |
], | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:ListBucket" | |
], | |
"Resource": [ | |
"arn:aws:s3:::" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:DeleteObject", | |
"s3:GetObject", | |
"s3:PutObject", | |
"s3:CreateMultipartUpload", | |
"s3:AbortMultipartUpload", | |
"s3:ListMultipartUploadParts", | |
"s3:ListBucketMultipartUploads" | |
], | |
"Resource": [ | |
"arn:aws:s3:::/*" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment