Last active
August 20, 2018 19:35
-
-
Save alexbassy/a2a1902e504e793e1210849f01109a62 to your computer and use it in GitHub Desktop.
IAM policy for serverless applications
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": [ | |
{ | |
"Sid": "VisualEditor0", | |
"Effect": "Allow", | |
"Action": [ | |
"lambda:CreateFunction", | |
"s3:Get*", | |
"iam:CreateRole", | |
"lambda:GetFunctionConfiguration", | |
"iam:AttachRolePolicy", | |
"iam:PutRolePolicy", | |
"s3:List*", | |
"ssm:GetParameter", | |
"logs:CreateLogStream", | |
"iam:DetachRolePolicy", | |
"ssm:DescribeParameters", | |
"cloudformation:UpdateStack", | |
"lambda:DeleteFunction", | |
"logs:FilterLogEvents", | |
"cloudformation:List*", | |
"apigateway:GET", | |
"iam:GetRole", | |
"lambda:InvokeFunction", | |
"iam:DeleteRole", | |
"ssm:GetParameters", | |
"logs:CreateLogGroup", | |
"lambda:UpdateAlias", | |
"ssm:PutParameter", | |
"lambda:UpdateFunctionCode", | |
"events:Delete*", | |
"events:Remove*", | |
"cloudformation:DeleteStack", | |
"lambda:PublishVersion", | |
"apigateway:POST", | |
"ec2:DescribeSubnets", | |
"cloudformation:ValidateTemplate", | |
"lambda:CreateAlias", | |
"lambda:ListVersionsByFunction", | |
"logs:DescribeLogStreams", | |
"logs:DeleteLogStream", | |
"events:Describe*", | |
"apigateway:DELETE", | |
"iam:PassRole", | |
"iam:DeleteRolePolicy", | |
"events:Put*", | |
"logs:DescribeLogGroups", | |
"s3:*", | |
"logs:DeleteLogGroup", | |
"apigateway:PUT", | |
"lambda:GetFunction", | |
"lambda:UpdateFunctionConfiguration", | |
"ec2:DescribeSecurityGroups", | |
"cloudformation:Describe*", | |
"lambda:AddPermission", | |
"cloudformation:CreateStack", | |
"ec2:DescribeVpcs", | |
"lambda:DeleteAlias", | |
"lambda:RemovePermission", | |
"cloudformation:Get*" | |
], | |
"Resource": "*" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment