Skip to content

Instantly share code, notes, and snippets.

@Beomi
Created August 1, 2017 00:52
Show Gist options
  • Save Beomi/409efc459253802d02ee8b0dfdf177ca to your computer and use it in GitHub Desktop.
Save Beomi/409efc459253802d02ee8b0dfdf177ca to your computer and use it in GitHub Desktop.
Serverless Framework iam settings for AWS
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"cloudformation:CreateStack",
"cloudformation:DescribeStacks",
"cloudformation:DescribeStackEvents",
"cloudformation:DescribeStackResources",
"cloudformation:GetTemplate",
"cloudformation:ValidateTemplate",
"cloudformation:CreateStack",
"cloudformation:UpdateStack",
"cloudformation:DescribeStacks",
"cloudformation:ListStacks",
"cloudformation:DescribeStackEvents",
"cloudformation:DescribeStackResource",
"cloudformation:DescribeStackResources",
"cloudformation:ValidateTemplate",
"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",
"route53:*",
"ec2:DescribeVpcs",
"ec2:DescribeSubnets",
"ec2:DescribeSecurityGroups"
],
"Resource": "*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment