-
-
Notifications
You must be signed in to change notification settings - Fork 672
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
Explicitly setting http_tcp_listener.action_type
to "forward"
fails
#280
Comments
Just ran into this and have been cracking my head as to what was wrong with my configuration.... Thnx for this, by commenting out the explicit action I was able to successfully create my listeners. |
This issue has been automatically marked as stale because it has been open 30 days |
Keep alive post |
As per the documentation:
meaning when the |
Fixed in #281 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
A change introduced with #269 currently prevents the user from explicitly setting a
http_tcp_listeners
attributeaction_type
to "forward". Most of the time this isn't an issue but if you need to set the value ofaction_type
explicitly, there is no working way to do so.Versions
Reproduction Code [Required]
In the following example a flag
local.lb_listen_to_http
decides if the ALB should forward or redirect HTTP traffic.Steps to reproduce the behavior:
local.lb_listen_to_http
totrue
and apply the code.Expected behavior
The code runs and HTTP Listener is being created.
Actual behavior
Applying the above code with , will result in the error
Additional context
The error is caused by L632 in the ALB module:
action_type
is not set or set to something other than"forward"
, everything is working fineaction_type
is set to"forward"
, the statement tries to assignnull
astarget_group_arn
, which is invalidaction_type
is set tonull
the code fails withInvalid value for "value" parameter: argument must not be null.
The fix would be to add
forward
to thecontains
functions first parameter, as it has been already done until #269 was merged.The text was updated successfully, but these errors were encountered: