-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
aws_globalaccelerator_endpoint_group traffic_dial_percentage cannot be set to 0 #11182
Comments
Ah, thanks for reporting this @maleko66 👍 Indeed the logic in the resource would currently prevent the configuration of the value 0, because its currently using If you or anyone else is interesting in fixing this, we need to use opts := &globalaccelerator.CreateEndpointGroupInput{
ListenerArn: aws.String(d.Get("listener_arn").(string)),
IdempotencyToken: aws.String(resource.UniqueId()),
EndpointGroupRegion: aws.String(region),
TrafficDialPercentage: aws.Float64(d.Get("traffic_dial_percentage").(float64)),
}
// ...
opts := &globalaccelerator.UpdateEndpointGroupInput{
EndpointGroupArn: aws.String(d.Id()),
TrafficDialPercentage: aws.Float64(d.Get("traffic_dial_percentage").(float64)),
} And removing the |
…ting for traffic_dial_percentage = 0 Reference: #11182 Output from acceptance testing: ``` --- PASS: TestAccAwsGlobalAcceleratorEndpointGroup_basic (162.47s) --- PASS: TestAccAwsGlobalAcceleratorEndpointGroup_update (200.66s) ```
The fix for this has been merged and will release with version 2.43.0 of the Terraform AWS Provider, tomorrow. Thanks to @zsiddique for the implementation 👍 |
This has been released in version 2.43.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 for triage. Thanks! |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Terraform Version
Terraform v0.12.8
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
New endpoint with traffic dial set to 0%
Actual Behavior
0% is ignored and new endpoint has traffic dial set to 100% (100% is the default). In fact, 0% is always ignored. You can't change any existing traffic_dial_percentage to 0% as this results in a no-op with subsequent
terraform plan
andterraform apply
still wanting to change the value to 0%.Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: