-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
Fixes #134 - Does not create http_forward when aws_lb_target_group.default is disabled #149
Conversation
8a9eb28
to
8cb422d
Compare
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 |
@spazm Unfortunately, we need to run some automation to pass our tests. Mind doing the following locally, adding + committing the result, and pushing to your branch?
Thanks! |
I missed the original requests to do so. I'll add that to my todo list and push back the results. |
…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" { ```
b6f73d5
to
a3d75da
Compare
/terratest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix!
Fantastic. Thanks for merging. I've enjoyed using cloudposse tf modules, glad I could share back. |
These changes were released in v2.2.2. |
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