mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
setting iam role to allow it to read from the bucket
This commit is contained in:
parent
ff180a67e2
commit
7a69a7255c
1 changed files with 12 additions and 0 deletions
|
|
@ -12,6 +12,18 @@ provider:
|
|||
PLAN_TRIGGER_BUCKET: ${env:PLAN_TRIGGER_BUCKET}
|
||||
DOMAIN_NAME: ${env:DOMAIN_NAME}
|
||||
EPC_AUTH_TOKEN: ${env:EPC_AUTH_TOKEN}
|
||||
# Give lambda access to read from the bucket
|
||||
iam:
|
||||
role:
|
||||
name: fastapi_backend_${env:PLAN_TRIGGER_BUCKET}_access
|
||||
statements:
|
||||
- Effect: Allow
|
||||
Action:
|
||||
- s3:GetObject
|
||||
- s3:ListBucket
|
||||
Resource:
|
||||
- arn:aws:s3:::${env:PLAN_TRIGGER_BUCKET}
|
||||
- arn:aws:s3:::${env:PLAN_TRIGGER_BUCKET}/*
|
||||
|
||||
|
||||
package:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue