allowing total s3 access to engine lambda

This commit is contained in:
Khalim Conn-Kowlessar 2025-04-17 17:34:13 +01:00
parent fd76331ac3
commit afabbf9228
2 changed files with 2 additions and 3 deletions

View file

@ -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)()

View file

@ -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}/*