mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
allowing total s3 access to engine lambda
This commit is contained in:
parent
fd76331ac3
commit
afabbf9228
2 changed files with 2 additions and 3 deletions
|
|
@ -411,7 +411,7 @@ def get_funding_data():
|
|||
|
||||
|
||||
async def model_engine(body: PlanTriggerRequest):
|
||||
logger.info("Model Engine triggered with body: %s", body)
|
||||
logger.info("Model Engine triggered with body: %s", body.model_dump_json())
|
||||
|
||||
logger.info("Connecting to db")
|
||||
session = sessionmaker(bind=db_engine)()
|
||||
|
|
|
|||
|
|
@ -152,8 +152,7 @@ resources:
|
|||
- Fn::GetAtt: [ EngineQueue, Arn ]
|
||||
- Effect: Allow
|
||||
Action:
|
||||
- s3:GetObject
|
||||
- s3:ListBucket
|
||||
- s3:*
|
||||
Resource:
|
||||
- arn:aws:s3:::${env:PLAN_TRIGGER_BUCKET}
|
||||
- arn:aws:s3:::${env:PLAN_TRIGGER_BUCKET}/*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue