Last active
January 22, 2021 13:32
-
-
Save PEKTOP/ccee15c931d208de8e1e4a1ffe42c150 to your computer and use it in GitHub Desktop.
AWS AIM Policy for Zappa
This file contains hidden or 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:GetRole", | |
"iam:CreateRole", | |
"iam:PassRole", | |
"iam:PutRolePolicy" | |
], | |
"Resource": [ | |
"arn:aws:iam::XXXXXXXXXXXXXX:role/*-ZappaLambdaExecutionRole" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"apigateway:DELETE", | |
"apigateway:GET", | |
"apigateway:PATCH", | |
"apigateway:POST", | |
"apigateway:PUT", | |
"events:DeleteRule", | |
"events:DescribeRule", | |
"events:ListRules", | |
"events:ListRuleNamesByTarget", | |
"events:ListTargetsByRule", | |
"events:PutRule", | |
"events:PutTargets", | |
"events:RemoveTargets", | |
"lambda:AddPermission", | |
"lambda:CreateFunction", | |
"lambda:DeleteFunction", | |
"lambda:GetAlias", | |
"lambda:GetFunction", | |
"lambda:GetFunctionConfiguration", | |
"lambda:GetPolicy", | |
"lambda:InvokeFunction", | |
"lambda:ListVersionsByFunction", | |
"lambda:RemovePermission", | |
"lambda:UpdateFunctionCode", | |
"lambda:UpdateFunctionConfiguration", | |
"cloudformation:CreateStack", | |
"cloudformation:DeleteStack", | |
"cloudformation:DescribeStackResource", | |
"cloudformation:DescribeStacks", | |
"cloudformation:ListStackResources", | |
"cloudformation:UpdateStack", | |
"cloudfront:UpdateDistribution", | |
"logs:DeleteLogGroup", | |
"logs:DescribeLogStreams", | |
"logs:FilterLogEvents", | |
"route53:ListHostedZones" | |
], | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:CreateBucket", | |
"s3:ListBucket", | |
"s3:ListBucketMultipartUploads" | |
], | |
"Resource": [ | |
"arn:aws:s3:::zappa-*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:DeleteObject", | |
"s3:GetObject", | |
"s3:PutObject", | |
"s3:AbortMultipartUpload", | |
"s3:ListMultipartUploadParts" | |
], | |
"Resource": [ | |
"arn:aws:s3:::zappa-*/*" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment