Skip to content
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 api error ValidationError: An action must be specified #40022

Closed
robh007 opened this issue Nov 6, 2024 · 4 comments · Fixed by #40039
Assignees
Labels
bug Addresses a defect in current functionality. service/elbv2 Issues and PRs that pertain to the elbv2 service.
Milestone

Comments

@robh007
Copy link
Contributor

robh007 commented Nov 6, 2024

Terraform Core Version

1.9.2

AWS Provider Version

5.74.0

Affected Resource(s)

When trying to modify either an existing LB listener with attribute tcp_idle_timeout_seconds or when you've created a new LB Listener with the attribute included, subsequent modifications fail with the following error.

operation error Elastic Load Balancing v2: ModifyListener, https response error StatusCode: 400, RequestID: 9443d8b7-fc7f-4de0-b831-878f907e6d5f, api error ValidationError: An action must be specified

The tests look only to create either the GWLB or NLB, there isn't a test to then modify the attribute.

Expected Behavior

Listener attribute tcp_idle_timeout_seconds should be modified with appropriate value

Actual Behavior

Error with API call.

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

resource "aws_lb" "test" {
  name               = "test-gwlb"
  load_balancer_type = "gateway"
  subnet_mapping {
    subnet_id = "subnet-1234567"
  }

  tags = {
    Name = "test-gwlb"
  }
}

resource "aws_lb_target_group" "test" {
  name     = "test-target-group"
  port     = 6081
  protocol = "GENEVE"
  vpc_id   = aws_vpc.test.id

  health_check {
    enabled             = true
    interval            = 30
    path                = "/"
    port                = "traffic-port"
    protocol            = "HTTP"
    timeout             = 5
    healthy_threshold   = 3
    unhealthy_threshold = 3
  }

  tags = {
    Name = "test-target-group"
  }
}

resource "aws_lb_listener" "test" {
  load_balancer_arn = aws_lb.test.arn
  port              = 6081
  protocol          = "GENEVE"
  tcp_idle_timeout_seconds = 3600

  default_action {
    type             = "forward"
    target_group_arn = aws_lb_target_group.test.arn
  }

  tags = {
    Name = "test-listener"
  }
}

Steps to Reproduce

Run terraform to create the resources
Modify the following attribute on the listener

tcp_idle_timeout_seconds = 60

Run terraform to modify & the error will occur.

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

@robh007 robh007 added the bug Addresses a defect in current functionality. label Nov 6, 2024
@github-actions github-actions bot added the service/elbv2 Issues and PRs that pertain to the elbv2 service. label Nov 6, 2024
Copy link

github-actions bot commented Nov 6, 2024

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Nov 6, 2024
@jar-b jar-b removed the needs-triage Waiting for first response or review from a maintainer. label Nov 6, 2024
@jar-b
Copy link
Member

jar-b commented Nov 6, 2024

Relates #39585

@jar-b jar-b self-assigned this Nov 6, 2024
@github-actions github-actions bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Nov 6, 2024
Copy link

github-actions bot commented Nov 7, 2024

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.

@github-actions github-actions bot added this to the v5.75.0 milestone Nov 7, 2024
@github-actions github-actions bot removed the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Nov 11, 2024
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Addresses a defect in current functionality. service/elbv2 Issues and PRs that pertain to the elbv2 service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants