Skip to content

Instantly share code, notes, and snippets.

@matthewberryman
Created March 22, 2018 06:44
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 matthewberryman/e304f4557269ca802701f3e8be92ac0d to your computer and use it in GitHub Desktop.
Save matthewberryman/e304f4557269ca802701f3e8be92ac0d to your computer and use it in GitHub Desktop.
IAM policy for using serverless in codebuild
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1483564261000",
"Effect": "Allow",
"Action": [
"iam:GetRole",
"iam:CreateRole",
"iam:DeleteRole",
"iam:PutRolePolicy",
"iam:PassRole",
"s3:CreateBucket",
"s3:DeleteObject",
"s3:GetObject",
"s3:PutObject",
"s3:ListBucket",
"cloudformation:CreateStack",
"cloudformation:DescribeStacks",
"cloudformation:DescribeStackEvents",
"cloudformation:DescribeStackResource",
"cloudformation:DescribeStackResources",
"cloudformation:CreateUploadBucket",
"cloudformation:UpdateStack",
"cloudformation:ValidateTemplate",
"dynamodb:CreateTable",
"dynamodb:DescribeTable",
"lambda:CreateFunction",
"lambda:GetFunctionConfiguration",
"lambda:ListVersionsByFunction",
"lambda:PublishVersion",
"lambda:UpdateFunctionCode",
"lambda:GetFunction",
"lambda:AddPermission",
"execute-api:Invoke",
"apigateway:DELETE",
"apigateway:PUT",
"apigateway:POST",
"apigateway:GET",
"logs:DescribeLogGroups",
"logs:CreateLogGroup",
"logs:DeleteLogGroup"
],
"Resource": [
"*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment