Created
February 18, 2020 16:23
-
-
Save gautamborgohain/ab2a85e1888b4c6ce082ced2ded36bd5 to your computer and use it in GitHub Desktop.
Policy document for to allow zappa to deploy to AWS Lambda. Also gives access to some other services that could be tied with the Lambda app
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": [ | |
| { | |
| "Sid": "VisualEditor0", | |
| "Effect": "Allow", | |
| "Action": [ | |
| "iam:GetPolicyVersion", | |
| "cloudformation:DeleteStackInstances", | |
| "events:EnableRule", | |
| "sqs:ReceiveMessage", | |
| "logs:*", | |
| "cloudformation:DescribeStackResource", | |
| "iam:PutRolePolicy", | |
| "cloudformation:UpdateStackSet", | |
| "cloudformation:CreateChangeSet", | |
| "xray:PutTraceSegments", | |
| "cloudformation:ContinueUpdateRollback", | |
| "events:ListRuleNamesByTarget", | |
| "cloudformation:DescribeStackEvents", | |
| "iam:ListAttachedRolePolicies", | |
| "events:ListRules", | |
| "cloudformation:UpdateStack", | |
| "events:RemoveTargets", | |
| "s3:HeadBucket", | |
| "iam:ListRolePolicies", | |
| "apigateway:GET", | |
| "cloudformation:DescribeChangeSet", | |
| "events:ListTargetsByRule", | |
| "cloudformation:CreateStackSet", | |
| "cloudformation:ExecuteChangeSet", | |
| "cloudformation:ListStackResources", | |
| "events:PutEvents", | |
| "iam:GetRole", | |
| "events:DescribeRule", | |
| "s3:PutAccountPublicAccessBlock", | |
| "iam:GetPolicy", | |
| "cloudformation:DescribeStackInstance", | |
| "sqs:SendMessage", | |
| "cloudformation:DescribeStackResources", | |
| "cloudformation:SignalResource", | |
| "cloudformation:DescribeStacks", | |
| "cloudformation:DescribeStackResourceDrifts", | |
| "cloudwatch:*", | |
| "cloudformation:GetTemplate", | |
| "dynamodb:DescribeReservedCapacity", | |
| "cloudformation:DeleteStack", | |
| "apigateway:POST", | |
| "ec2:DescribeSubnets", | |
| "iam:GetRolePolicy", | |
| "cloudformation:ValidateTemplate", | |
| "cloudformation:CreateUploadBucket", | |
| "cloudformation:CancelUpdateStack", | |
| "tag:GetResources", | |
| "xray:PutTelemetryRecords", | |
| "cloudformation:UpdateStackInstances", | |
| "events:PutRule", | |
| "dynamodb:PurchaseReservedCapacityOfferings", | |
| "dynamodb:ListTagsOfResource", | |
| "cloudformation:UpdateTerminationProtection", | |
| "cloudformation:CreateStackInstances", | |
| "cloudformation:DeleteChangeSet", | |
| "apigateway:DELETE", | |
| "iam:PassRole", | |
| "dynamodb:DescribeReservedCapacityOfferings", | |
| "dynamodb:TagResource", | |
| "apigateway:PATCH", | |
| "cloudformation:StopStackSetOperation", | |
| "dynamodb:DescribeLimits", | |
| "events:DisableRule", | |
| "cloudformation:SetStackPolicy", | |
| "sqs:ListQueues", | |
| "dynamodb:UntagResource", | |
| "apigateway:PUT", | |
| "iam:ListRoles", | |
| "dynamodb:DescribeTimeToLive", | |
| "cloudformation:DeleteStackSet", | |
| "ec2:DescribeSecurityGroups", | |
| "dynamodb:ListStreams", | |
| "events:DeleteRule", | |
| "events:PutTargets", | |
| "s3:GetAccountPublicAccessBlock", | |
| "s3:ListAllMyBuckets", | |
| "cloudformation:DescribeStackSet", | |
| "cloudformation:CreateStack", | |
| "ec2:DescribeVpcs", | |
| "lambda:*" | |
| ], | |
| "Resource": "*" | |
| }, | |
| { | |
| "Sid": "VisualEditor1", | |
| "Effect": "Allow", | |
| "Action": [ | |
| "dynamodb:DescribeTable" | |
| ], | |
| "Resource": "arn:aws:dynamodb:ap-southeast-1:009176049407:table/opencv_image_moderation_async" | |
| }, | |
| { | |
| "Sid": "VisualEditor2", | |
| "Effect": "Allow", | |
| "Action": "s3:*", | |
| "Resource": "/*" | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment