mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
redploy my lambda without list and see if it works
This commit is contained in:
parent
76e362520d
commit
b7e201f3d4
4 changed files with 3 additions and 4 deletions
|
|
@ -335,7 +335,7 @@ def get_uprn(
|
|||
|
||||
address = top_rank_df["address"].values[0]
|
||||
lexiscore = float(top_rank_df["lexiscore"].values[0])
|
||||
epc = top_rank_df["current-energy-rating"].values[0]
|
||||
epc = top_rank_df["current-energy-efficiency"].values[0]
|
||||
score = float(top_rank_df["lexiscore"].values[0])
|
||||
|
||||
# logger.info(f"Address found to be: {address}, with lexiscore {lexiscore}")
|
||||
|
|
|
|||
|
|
@ -29,5 +29,5 @@ class ConditionTriggerRequest(BaseModel):
|
|||
# {
|
||||
# "file_type": "LBWF",
|
||||
# "trigger_file_bucket": "condition-data-dev",
|
||||
# "trigger_file_key": "input/lbwf/LBWF - Example Asset Data September 2025.xlsx",
|
||||
# "trigger_file_key": "input/lbwf/LBWF - Example Asset Data September 2025.xlsx"
|
||||
# }
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ def parse_s3_uri(s3_uri: str) -> tuple[str, str]:
|
|||
|
||||
Supports two formats:
|
||||
1. S3 URI format: s3://bucket/key
|
||||
2. AWS console URL: https://account-id-hash.region.console.aws.amazon.com/s3/object/bucket?region=...&prefix=path
|
||||
"""
|
||||
logger.info("Parsing S3 URI")
|
||||
|
||||
|
|
|
|||
|
|
@ -366,7 +366,7 @@ module "postcode_splitter_s3_read" {
|
|||
policy_name = "PostcodeSplitterReadS3"
|
||||
policy_description = "Allow postcode splitter Lambda to read from retrofit-data bucket"
|
||||
bucket_arns = ["arn:aws:s3:::retrofit-data-${var.stage}"]
|
||||
actions = ["s3:GetObject", "s3:ListBucket"]
|
||||
actions = ["s3:GetObject"]
|
||||
resource_paths = ["/*"]
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue