terraform-aws-cloudfront-s3-cdn icon indicating copy to clipboard operation
terraform-aws-cloudfront-s3-cdn copied to clipboard

Feature/optional ignore web acl id changes [WIP] [FOR COMMENT]

Open fentonfentonfenton opened this issue 2 years ago • 0 comments

what

  • If you're using an AWS Managed central WAF, it will automagically attach to your cloudfront distribution, which is nice.
  • But, terraform will then attempt an update-in-place every time:
   - web_acl_id                     = "816baba3-0619-61b3-ba3c-301e05e17621" -> null
        # (20 unchanged attributes hidden)

Which is not as great.

why this change

  • You can't use a data source to attach the acl elegantly, because it's got a generated name.
  • It'd be handy just to say 'ignore this'

fentonfentonfenton avatar Aug 04 '22 15:08 fentonfentonfenton