Skip to content

Instantly share code, notes, and snippets.

@nivleshc
Created August 23, 2019 10:51
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 nivleshc/1174695c0bf451b5a1faef90dd83bab2 to your computer and use it in GitHub Desktop.
Save nivleshc/1174695c0bf451b5a1faef90dd83bab2 to your computer and use it in GitHub Desktop.
# define IAM roles
iamRoleStatements:
- Effect: Allow
Action:
- s3:HeadObject
- s3:GetObject
- s3:GetObjectAcl
- s3:PutObject
- s3:PutObjectAcl
- s3:CreateMultiPartUpload
Resource:
- arn:aws:s3:::${self:custom.s3.websiteBucket}/*
- Effect: Allow
Action:
- dynamodb:*
Resource:
- !GetAtt transportPositionTable.Arn
- !Join
- ''
- - !GetAtt transportPositionTable.Arn
- '/index/TripDate-GSI'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment