mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
Merge pull request #419 from Hestia-Homes/remote-assessment-api
allowing total s3 access to engine lambda
This commit is contained in:
commit
6af3b84204
2 changed files with 2 additions and 3 deletions
|
|
@ -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)()
|
||||||
|
|
|
||||||
|
|
@ -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}/*
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue