fix: listener default action variable object block [HOTFIX REQUIRED!] @oycyc (#190)
## whatRemoves the default object block and changes it to null
, making it consistent with the other default actions. The original mindset of having it was to default to HTTP_301 since it's a required attribute, but it doesn't matter because it is not optional()
in the Terraform.
why
As described by @mschfh
this adds a redirect by default, as the
default
for the variable is an object, notnull
.Lines 231 to 232 in cb8fa65
terraform-aws-alb/variables.tf
Lines 292 to 311 in cb8fa65
Plan:
~ default_action { ~ type = "forward" -> "redirect" # (2 unchanged attributes hidden) + redirect { + host = "#{host}" + path = "/#{path}" + port = "#{port}" + protocol = "#{protocol}" + query = "#{query}" + status_code = "HTTP_301" } }
Explicitly passing
listener_https_redirect = null
to the module does prevent this change, please update the default or adjust thefor_each
.
references
Comment referencing this issue
#187 (comment)