Skip to content

Instantly share code, notes, and snippets.

@jwrubel
Created December 14, 2018 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwrubel/ff75a8117d4645f45a10420bd2c74c08 to your computer and use it in GitHub Desktop.
Save jwrubel/ff75a8117d4645f45a10420bd2c74c08 to your computer and use it in GitHub Desktop.
IAM permissions for creating lambda and API gateway on AWS
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"apigateway:*"
],
"Resource": "arn:aws:apigateway:*::/*"
},
{
"Effect": "Allow",
"Action": [
"logs:*"
],
"Resource": "arn:aws:logs:*:*:*"
},
{
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:PutObject"
],
"Resource": "arn:aws:s3:::*"
},
{
"Effect": "Allow",
"Action": [
"lambda:*"
],
"Resource": [
"*"
]
},
{
"Effect": "Allow",
"Action": [
"iam:CreateRole",
"iam:DeleteRole",
"iam:PassRole",
"iam:DeleteRolePolicy",
"iam:ListRolePolicies",
"iam:ListRoles",
"iam:GetRolePolicy",
"iam:PutRolePolicy",
"tag:getResources",
"cloudformation:DescribeStackResources"
],
"Resource": [
"*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment