-
-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #134 - Does not create http_forward when aws_lb_target_group.default is disabled #149
base: main
Are you sure you want to change the base?
Fixes #134 - Does not create http_forward when aws_lb_target_group.default is disabled #149
Conversation
8a9eb28
to
8cb422d
Compare
…fault is disabled * disables aws_lb_listener.http_forward when default_target_group is not enabled * target_group is required when type is 'redirect' Fixes this Validation error when default_target_group_enabled == 0 : ``` module.alb.aws_lb_listener.http_forward[0]: Creating... ╷ │ Error: creating ELBv2 Listener (arn:aws:elasticloadbalancing:...:...:loadbalancer/...): ValidationError: A target group ARN must be specified │ status code: 400, request id: 7cf9d727-fc77-4d32-a160-cbd175e16e20 │ │ with module.alb.aws_lb_listener.http_forward[0], │ on .terraform/modules/alb/main.tf line 150, in resource "aws_lb_listener" "http_forward": │ 150: resource "aws_lb_listener" "http_forward" { ```
8cb422d
to
d1a69cb
Compare
Edited to remove unnecessary guard rails for the other aws_lb_listener blocks; they work fine when the default target group is disabled. This leaves a small, clear change. Please reply with any questions and feel welcome to reformat or cherry-pick as necessary. |
/terratest |
/terratest |
@spazm Thanks. For the failing test, can you do
|
Thanks @spazm for creating this pull request! A maintainer will review your changes shortly. Please don't be discouraged if it takes a while. While you wait, make sure to review our contributor guidelines. Tip Need help or want to ask for a PR review to be expedited?Join us on Slack in the |
What
Fixes #134 - Does not create http_forward when aws_lb_target_group.default is disabled
Why
See #134. Fixes this Validation error when default_target_group_enabled == 0 :
references
closes #134