Created
December 14, 2018 17:25
-
-
Save jwrubel/ff75a8117d4645f45a10420bd2c74c08 to your computer and use it in GitHub Desktop.
IAM permissions for creating lambda and API gateway on AWS
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": [ | |
{ | |
"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