Skip to content

Commit

Permalink
fix(template): restrict lambdas permissions on s3 bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuss Florian (uid10804) committed Aug 1, 2020
1 parent 55826dc commit 8ad34dc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/template/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,15 @@ provider:
iamRoleStatements:
- Effect: 'Allow'
Action:
- 's3:*'
Resource: '*'
- 's3:GetObject'
- 's3:PutObject'
Resource:
- 'arn:aws:s3:::${self:custom.file.s3Bucket}/*'
- Effect: 'Allow'
Action:
- 's3:*'
- 's3:ListBucket'
Resource:
- 'arn:aws:s3:::${self:custom.file.s3Bucket}/*'
- 'arn:aws:s3:::${self:custom.file.s3Bucket}'

# The `functions` block defines what code to deploy
functions:
Expand Down

0 comments on commit 8ad34dc

Please sign in to comment.