-
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]: Can't apply aws_globalaccelerator_endpoint_group resource after modifying the weight #31254
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Hey @taisytran 👋 Thank you for taking the time to raise this! So that we have the necessary information in order to look into this, can you supply a sample Terraform configuration as well as debug logs (redacted as needed)? |
Thank you for your support. Here is my TF configuration
|
We are having possibly a similar issue. It seems that if the weight for an endpoint is set to 0 it is dropped API call to aws. I checked the Cloud Trail and with a weight of 0 in an endpoint configuration, I keep seeing
|
Just as an update, It seems when this happens when you add a new endpoint in an endpoint group with its weight set to 0. |
I confirm this bug, a weight of 0 is ignored, it seems to be caused by this line:
As a result, as no weight is sent in the API call, the value of 128 is used by AWS instead of 0 when creating a new endpoint configuration (which is kind of unexpected) |
This functionality has been released in v5.2.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! |
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. |
Terraform Core Version
1.3.7
AWS Provider Version
4.56.0
Affected Resource(s)
aws_globalaccelerator_endpoint_group
Expected Behavior
The weight's value can be applied after modifying
Actual Behavior
The weight's value couldn't be applied after modifying
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
...
Steps to Reproduce
aws_globalaccelerator_endpoint_group
still be there (couldn't be applied)Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: