mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
redeploy old postcode splitter
This commit is contained in:
parent
714478a99a
commit
c5ab795f85
3 changed files with 30 additions and 9 deletions
4
.github/workflows/deploy_terraform.yml
vendored
4
.github/workflows/deploy_terraform.yml
vendored
|
|
@ -169,7 +169,9 @@ jobs:
|
||||||
uses: ./.github/workflows/_build_image.yml
|
uses: ./.github/workflows/_build_image.yml
|
||||||
with:
|
with:
|
||||||
ecr_repo: postcode_splitter-${{ needs.determine_stage.outputs.stage }}
|
ecr_repo: postcode_splitter-${{ needs.determine_stage.outputs.stage }}
|
||||||
dockerfile_path: applications/postcode_splitter/Dockerfile
|
# dockerfile_path: applications/postcode_splitter/Dockerfile
|
||||||
|
# Switch back to the old postcode_splitter due to hyde priority - interface for the new one isn't working atm
|
||||||
|
dockerfile_path: backend/postcode_splitter/handler/Dockerfile
|
||||||
build_context: .
|
build_context: .
|
||||||
build_args: |
|
build_args: |
|
||||||
DEV_DB_HOST=$DEV_DB_HOST
|
DEV_DB_HOST=$DEV_DB_HOST
|
||||||
|
|
|
||||||
|
|
@ -79,23 +79,23 @@ def app():
|
||||||
"""
|
"""
|
||||||
|
|
||||||
data_folder = "/workspaces/model/asset_list"
|
data_folder = "/workspaces/model/asset_list"
|
||||||
data_filename = "lincs_address_list.xlsx"
|
data_filename = "hyde.xlsx"
|
||||||
sheet_name = "Sheet1"
|
sheet_name = "AddressProfilingResults"
|
||||||
postcode_column = "Postcode"
|
postcode_column = "Postcode"
|
||||||
address1_column = "Deal Name"
|
address1_column = "Address"
|
||||||
address1_method = None
|
address1_method = None
|
||||||
fulladdress_column = "Deal Name"
|
fulladdress_column = "Postcode"
|
||||||
address_cols_to_concat = []
|
address_cols_to_concat = []
|
||||||
missing_postcodes_method = None
|
missing_postcodes_method = None
|
||||||
landlord_year_built = None
|
landlord_year_built = None
|
||||||
landlord_os_uprn = None
|
landlord_os_uprn = None
|
||||||
landlord_property_type = None # Good to include if landlord gave
|
landlord_property_type = "Property Type" # Good to include if landlord gave
|
||||||
landlord_built_form = None # Good to include if landlord gave
|
landlord_built_form = None # Good to include if landlord gave
|
||||||
landlord_wall_construction = None
|
landlord_wall_construction = None
|
||||||
landlord_roof_construction = None
|
landlord_roof_construction = None
|
||||||
landlord_heating_system = None
|
landlord_heating_system = None
|
||||||
landlord_existing_pv = None
|
landlord_existing_pv = None
|
||||||
landlord_property_id = "landlord_id"
|
landlord_property_id = "Organisation Reference"
|
||||||
landlord_sap = None
|
landlord_sap = None
|
||||||
outcomes_filename = None
|
outcomes_filename = None
|
||||||
outcomes_sheetname = None
|
outcomes_sheetname = None
|
||||||
|
|
@ -468,3 +468,4 @@ def app():
|
||||||
asset_list.duplicated_addresses.to_excel(
|
asset_list.duplicated_addresses.to_excel(
|
||||||
writer, sheet_name="Duplicate Properties", index=False
|
writer, sheet_name="Duplicate Properties", index=False
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,8 +38,26 @@ module "lambda" {
|
||||||
{
|
{
|
||||||
STAGE = var.stage
|
STAGE = var.stage
|
||||||
LOG_LEVEL = "info"
|
LOG_LEVEL = "info"
|
||||||
POSTGRES_USERNAME = local.db_credentials.db_assessment_model_username
|
# POSTGRES_USERNAME = local.db_credentials.db_assessment_model_username
|
||||||
POSTGRES_PASSWORD = local.db_credentials.db_assessment_model_password
|
# POSTGRES_PASSWORD = local.db_credentials.db_assessment_model_password
|
||||||
|
# Switch back to the old postcode_splitter due to hyde priority - interface for the new one isn't working atm
|
||||||
|
DB_USERNAME = local.db_credentials.db_assessment_model_username
|
||||||
|
DB_PASSWORD = local.db_credentials.db_assessment_model_password
|
||||||
|
# Placeholder values so backend/app/config.py Settings doesn't fall back to "changeme"
|
||||||
|
GOOGLE_SOLAR_API_KEY = "test"
|
||||||
|
SAP_PREDICTIONS_BUCKET = "test"
|
||||||
|
CARBON_PREDICTIONS_BUCKET = "test"
|
||||||
|
HEAT_PREDICTIONS_BUCKET = "test"
|
||||||
|
HEATING_KWH_PREDICTIONS_BUCKET = "test"
|
||||||
|
HOTWATER_KWH_PREDICTIONS_BUCKET = "test"
|
||||||
|
API_KEY = "test"
|
||||||
|
ENVIRONMENT = "test"
|
||||||
|
SECRET_KEY = "test"
|
||||||
|
PLAN_TRIGGER_BUCKET = "test"
|
||||||
|
DATA_BUCKET = "test"
|
||||||
|
EPC_AUTH_TOKEN = "test"
|
||||||
|
ENGINE_SQS_URL = "test"
|
||||||
|
ENERGY_ASSESSMENTS_BUCKET = "test"
|
||||||
ADDRESS2UPRN_QUEUE_URL = data.terraform_remote_state.address2uprn.outputs.address2uprn_queue_url
|
ADDRESS2UPRN_QUEUE_URL = data.terraform_remote_state.address2uprn.outputs.address2uprn_queue_url
|
||||||
S3_BUCKET_NAME = data.terraform_remote_state.shared.outputs.retrofit_sap_data_bucket_name
|
S3_BUCKET_NAME = data.terraform_remote_state.shared.outputs.retrofit_sap_data_bucket_name
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue