Skip to content

Instantly share code, notes, and snippets.

@aripalo
Created August 28, 2017 17:14
Show Gist options
  • Save aripalo/dbd7b67adc1b5f950e62bed7aedf3250 to your computer and use it in GitHub Desktop.
Save aripalo/dbd7b67adc1b5f950e62bed7aedf3250 to your computer and use it in GitHub Desktop.
AWS SAM deploy IAM user & policy document
Resources:
SamDeployUser:
Type: AWS::IAM::User
Properties:
UserName: sam-deploy-user
Path: "/"
Policies:
- PolicyName: allow-sam-deploy-access
PolicyDocument:
Version: "2012-10-17"
Statement:
- Effect: "Allow"
Action:
- "cloudformation:*"
- "lambda:*"
- "apigateway:*"
- "s3:ListBucket"
- "s3:GetObject"
- "s3:GetObjectAcl"
- "s3:PutObject"
- "s3:PutObjectAcl"
- "iam:CreateRole"
- "iam:AttachRolePolicy"
- "iam:GetRole*"
- "iam:PassRole"
- "events:*"
Resource: "*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment