-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
[Bug]: elasticloadbalancing:ModifyLoadBalancerAttributes permission is required when creating an load balancer listener even when tcp_idle_timeout_seconds
is not specified
#40000
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Relates #39585 |
Hello - In the provided configuration there is a listener using the # Add a listener for the Network Load Balancer
resource "aws_lb_listener" "example" {
load_balancer_arn = aws_lb.example.arn
port = 80
protocol = "TCP"
default_action {
type = "forward"
target_group_arn = aws_lb_target_group.example.arn
}
} I believe this is the expected behavior based on the implementation in #39585. That said, we can investigate the possibility of removing the default value (this will now be a breaking change) or providing some mechanism to opt-out of sending the value. |
@jar-b Thank you for looking at this. I guessed this was what was happening. Surely it would be better to not attempt to For me, the current implementation is the breaking change, not the other way around. Unfortunately, an external team manages our IAM so what would seem like a trivial tasks is actually extremely difficult. Last time we asked for an IAM change it took them 6 months, so we will have to pin the provider version for the forseeable. |
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
This functionality has been released in v5.75.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
Terraform Core Version
1.5.6
AWS Provider Version
5.73.0
Affected Resource(s)
aws_lb_listener
Expected Behavior
If no
tcp_idle_timeout_seconds
is specified, I wouldn't expect to need to have the elasticloadbalancing:ModifyLoadBalancerAttributesIf I don't have that permission, I would expect the creation not to fail
Actual Behavior
Creation fails when you don't have permission to ModifyLoadBalancerAttributes, even if no LoadBalancerAttributes are specified.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Documents.zip
Steps to Reproduce
Terraform a simply nlb with a listener (that has no custom tcp timeout specified) and the item will fail if you don't have the elasticloadbalancing:ModifyLoadBalancerAttributes permission. This isn't necessary to create an nlb listener without a custom tcp timeout.
Debug Output
No response
Panic Output
No response
Important Factoids
When pinning the AWS to use a provider before 5.73.0, the issue does not occur. (5.70.0)
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: