Skip to content

Instantly share code, notes, and snippets.

@netinlet
Forked from WarlaxZ/Policy
Created December 7, 2016 19:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save netinlet/2be1468cdd8217503a65ffd64e672580 to your computer and use it in GitHub Desktop.
Save netinlet/2be1468cdd8217503a65ffd64e672580 to your computer and use it in GitHub Desktop.
Serverless IAM Requirements
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"cloudformation:CreateStack",
"cloudformation:UpdateStack",
"cloudformation:DescribeStacks",
"cloudformation:ListStacks",
"cloudformation:DescribeStackEvents",
"cloudformation:DescribeStackResource",
"cloudformation:DescribeStackResources",
"iam:GetRole",
"iam:CreateRole",
"iam:CreatePolicy",
"iam:PutRolePolicy",
"iam:PassRole",
"lambda:GetFunction",
"lambda:ListVersionsByFunction",
"lambda:CreateFunction",
"lambda:UpdateFunctionCode",
"lambda:UpdateFunctionConfig",
"lambda:GetFunctionConfiguration",
"lambda:AddPermission",
"lambda:PublishVersion",
"s3:DeleteObject",
"s3:GetObject",
"s3:CreateBucket",
"s3:ListBucket",
"s3:PutObject",
"apigateway:POST",
"apigateway:GetResources",
"apigateway:GET",
"apigateway:PUT",
"apigateway:DELETE"
],
"Resource": "*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment