Merge pull request #419 from Hestia-Homes/remote-assessment-api

allowing total s3 access to engine lambda
This commit is contained in:
KhalimCK 2025-04-17 17:35:43 +01:00 committed by GitHub
commit 6af3b84204
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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): 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") logger.info("Connecting to db")
session = sessionmaker(bind=db_engine)() session = sessionmaker(bind=db_engine)()

View file

@ -152,8 +152,7 @@ resources:
- Fn::GetAtt: [ EngineQueue, Arn ] - Fn::GetAtt: [ EngineQueue, Arn ]
- Effect: Allow - Effect: Allow
Action: Action:
- s3:GetObject - s3:*
- s3:ListBucket
Resource: Resource:
- arn:aws:s3:::${env:PLAN_TRIGGER_BUCKET} - arn:aws:s3:::${env:PLAN_TRIGGER_BUCKET}
- arn:aws:s3:::${env:PLAN_TRIGGER_BUCKET}/* - arn:aws:s3:::${env:PLAN_TRIGGER_BUCKET}/*