Merge pull request #1144 from Hestia-Homes/feature/landlord_data

if you change the descript it destories and make a new one instead of…
This commit is contained in:
Jun-te Kim 2026-06-02 10:39:17 +01:00 committed by GitHub
commit feb3bc08f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -512,8 +512,12 @@ module "landlord_description_overrides_registry" {
module "landlord_overrides_s3_read" {
source = "../modules/s3_iam_policy"
policy_name = "LandlordOverridesReadS3"
policy_description = "Allow landlord description overrides Lambda to read the original upload CSV from retrofit-plan-inputs (and retrofit-data) bucket"
policy_name = "LandlordOverridesReadS3"
# NOTE: aws_iam_policy.description is ForceNew changing it destroys+recreates the
# policy, which deadlocks because the policy is attached to the lambda role in the
# separate landlordDescriptionOverrides stack (DeleteConflict). Keep this string
# byte-for-byte identical to what's in state so the bucket change applies in-place.
policy_description = "Allow landlord description overrides Lambda to read from retrofit-data bucket"
bucket_arns = [
"arn:aws:s3:::retrofit-plan-inputs-${var.stage}",
"arn:aws:s3:::retrofit-data-${var.stage}",