Added eco-spreadsheet presign bucket

This commit is contained in:
Khalim Conn-Kowlessar 2023-10-16 12:22:27 +11:00
parent 28550efbe5
commit 1a6da7b690
2 changed files with 18 additions and 10 deletions

View file

@ -77,16 +77,16 @@ async def trigger_plan(body: PlanTriggerRequest):
session, portfolio_id=body.portfolio_id, address=config['address'], postcode=config['postcode'] session, portfolio_id=body.portfolio_id, address=config['address'], postcode=config['postcode']
) )
# if a new record was not created, we don't produduce recommendations # if a new record was not created, we don't produduce recommendations
# if not is_new: if not is_new:
# continue continue
# # TODO: Need to add heat demand target # TODO: Need to add heat demand target
# create_property_targets( create_property_targets(
# session, session,
# property_id=property_id, property_id=property_id,
# portfolio_id=body.portfolio_id, portfolio_id=body.portfolio_id,
# epc_target=body.goal_value, epc_target=body.goal_value,
# heat_demand_target=None heat_demand_target=None
# ) )
input_properties.append( input_properties.append(
Property( Property(
@ -127,6 +127,7 @@ async def trigger_plan(body: PlanTriggerRequest):
recommendations_scoring_data = [] recommendations_scoring_data = []
for p in input_properties: for p in input_properties:
property_recommendations = [] property_recommendations = []
# Property recommendations # Property recommendations

View file

@ -98,6 +98,13 @@ module "s3_due_considerations_bucket" {
allowed_origins = var.allowed_origins allowed_origins = var.allowed_origins
} }
module "s3_eco_spreadseet_bucket" {
source = "./modules/s3_presignable_bucket"
bucketname = "retrofit-eco-spreadsheet-${var.stage}"
environment = var.stage
allowed_origins = var.allowed_origins
}
module "s3" { module "s3" {
source = "./modules/s3" source = "./modules/s3"
bucketname = "retrofit-datalake-${var.stage}" bucketname = "retrofit-datalake-${var.stage}"