-
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]: v5.23.0 - aws_lb - Load balancer attribute key 'dns_record.client_routing_policy' is not supported on load balancers with type 'network' #34135
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
This type of problem is already looked out for in the provider, so I assume something similar needs done: https://github.com/ddericco/terraform-provider-aws/blob/4d82b807c7910a4b82e37acdb55062391ebcc94d/internal/service/elbv2/load_balancer.go#L487 I dont know go, but I imagine something like
|
% make testacc TESTARGS='-run=TestAccELBV2LoadBalancer_NLB_basic$$' PKG=elbv2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/elbv2/... -v -count 1 -parallel 20 -run=TestAccELBV2LoadBalancer_NLB_basic$ -timeout 360m
=== RUN TestAccELBV2LoadBalancer_NLB_basic
=== PAUSE TestAccELBV2LoadBalancer_NLB_basic
=== CONT TestAccELBV2LoadBalancer_NLB_basic
load_balancer_test.go:118: Step 1/1 error: Error running apply: exit status 1
Error: failure configuring LB attributes: InvalidConfigurationRequest: Load balancer attribute key 'dns_record.client_routing_policy' is not supported on load balancers with type 'network'
status code: 400, request id: 9fb24738-db31-4fae-b887-351c781cc65a
with aws_lb.test,
on terraform_plugin_test.tf line 32, in resource "aws_lb" "test":
32: resource "aws_lb" "test" {
--- FAIL: TestAccELBV2LoadBalancer_NLB_basic (206.26s)
FAIL
FAIL github.com/hashicorp/terraform-provider-aws/internal/service/elbv2 211.831s
FAIL
make: *** [testacc] Error 1 |
Are you getting that error against #34140 ? |
Until this gets merged, is there a workaround in terraform? |
|
My workaround was to pin the aws provider to an older version:
|
Yeah, we can limit aws provider to older versions:
|
This is becoming an issue, as more of the well supported TF modules are requiring |
As @Mike-Nahmias mentioned, explicitly setting |
The #34140 fixes |
This functionality has been released in v5.31.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! |
This doesn't seem like it's fixed in v5.31.0. On my GovCloud NLB resource I have |
@Mike-Nahmias I concur. I just upgraded to v5.31.0 and attempted to re-apply. I got the following error (no other changes to my configuration):
|
Do you have the problem on NEW NLB creations? Also, I would open an issue, I doubt anyone is looking at this closed one. There were so many changes in the commit that I have no idea what the issue would be. |
Opened #35014 |
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.5.2
AWS Provider Version
v5.23.0
Affected Resource(s)
aws_lb
Expected Behavior
Existing NLB would be updated with the additional target group we added.
Actual Behavior
NLB update fails, because an unsupported setting was attempted to be configured
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
We operate in AWS Govcloud,
Client routing policy (DNS record)
is not supported in Govcloud, so the default provider deployment is now broken.Introduced Here: #33992
References
These features are available in all commercial and China Regions.
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: