Last active
March 16, 2017 17:02
-
-
Save tmaslen/fed9e1d325a6734d29035fe9b0271cfe to your computer and use it in GitHub Desktop.
example IAM policy for creating serverless services from the CLI
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": [ | |
{ | |
"Action": [ | |
"iam:CreateRole", | |
"iam:CreatePolicy", | |
"iam:AttachRolePolicy", | |
"iam:PassRole", | |
"lambda:GetFunction", | |
"lambda:CreateFunction", | |
"lambda:DeleteFunction", | |
"lambda:InvokeFunction", | |
"lambda:GetFunctionConfiguration", | |
"lambda:UpdateFunctionConfiguration", | |
"lambda:UpdateFunctionCode", | |
"lambda:CreateAlias", | |
"lambda:UpdateAlias", | |
"lambda:GetAlias", | |
"lambda:ListVersionsByFunction", | |
"logs:FilterLogEvents", | |
"cloudwatch:GetMetricStatistics", | |
"cloudformation:CreateStack", | |
"cloudformation:UpdateStack", | |
"cloudformation:DeleteStack", | |
"cloudformation:DescribeStacks", | |
"cloudformation:DescribeStackEvents", | |
"cloudformation:DescribeStackResource", | |
"cloudformation:DescribeStackResources", | |
"cloudformation:GetTemplate", | |
"cloudformation:List*", | |
"apigateway:GET", | |
"apigateway:PATCH", | |
"apigateway:DELETE", | |
"iam:DeleteRolePolicy", | |
"lambda:RemovePermission", | |
"iam:DetachRolePolicy", | |
"iam:DeleteRole", | |
"apigateway:POST", | |
"iam:PutRolePolicy", | |
"iam:GetRole", | |
"lambda:AddPermission", | |
"apigateway:PUT", | |
"lambda:ListFunctions" | |
], | |
"Effect": "Allow", | |
"Resource": "*" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment