Skip to content

Instantly share code, notes, and snippets.

@astroanu
Last active August 8, 2019 10:28
Show Gist options
  • Save astroanu/441634f3b3d7e64fca157d34792288f1 to your computer and use it in GitHub Desktop.
Save astroanu/441634f3b3d7e64fca157d34792288f1 to your computer and use it in GitHub Desktop.
AWS SAM Default starter policy
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject"
],
"Resource": "arn:aws:s3:::deployment-bucket/*"
},
{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": [
"lambda:CreateFunction",
"iam:GetRole",
"apigateway:PUT",
"iam:DeleteRole",
"iam:CreateRole",
"lambda:GetFunctionConfiguration",
"iam:AttachRolePolicy",
"cloudformation:CreateChangeSet",
"cloudformation:DeleteChangeSet",
"cloudformation:GetTemplateSummary",
"cloudformation:DescribeStacks",
"apigateway:DELETE",
"iam:PassRole",
"lambda:AddPermission",
"cloudformation:DescribeStackEvents",
"iam:DetachRolePolicy",
"apigateway:PATCH",
"lambda:DeleteFunction",
"apigateway:POST",
"apigateway:GET",
"cloudformation:DescribeChangeSet",
"cloudformation:ExecuteChangeSet",
"cloudformation:ListChangeSets"
],
"Resource": "*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment