-
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
fix: set dns_record_type as computed #33743
Conversation
Community NoteVoting for Prioritization
For Submitters
|
Before the fix: % make testacc TESTARGS='-run=TestAccVPCEndpoint_interfacePrivateDNS' PKG=ec2 ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 2 -run=TestAccVPCEndpoint_interfacePrivateDNS -timeout 360m
=== RUN TestAccVPCEndpoint_interfacePrivateDNS
=== PAUSE TestAccVPCEndpoint_interfacePrivateDNS
=== RUN TestAccVPCEndpoint_interfacePrivateDNSNoGateway
=== PAUSE TestAccVPCEndpoint_interfacePrivateDNSNoGateway
=== CONT TestAccVPCEndpoint_interfacePrivateDNS
=== CONT TestAccVPCEndpoint_interfacePrivateDNSNoGateway
=== NAME TestAccVPCEndpoint_interfacePrivateDNS
vpc_endpoint_test.go:116: Step 1/3 error: After applying this test step, the plan was not empty.
stdout:
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# aws_vpc_endpoint.test will be updated in-place
~ resource "aws_vpc_endpoint" "test" {
id = "vpce-041ae40640f6672f6"
tags = {
"Name" = "tf-acc-test-2880937972856114453"
}
# (18 unchanged attributes hidden)
~ dns_options {
- dns_record_ip_type = "ipv4" -> null
# (1 unchanged attribute hidden)
}
}
Plan: 0 to add, 1 to change, 0 to destroy.
--- FAIL: TestAccVPCEndpoint_interfacePrivateDNS (352.10s)
--- PASS: TestAccVPCEndpoint_interfacePrivateDNSNoGateway (417.54s)
FAIL
FAIL github.com/hashicorp/terraform-provider-aws/internal/service/ec2 423.506s
FAIL
make: *** [testacc] Error 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccVPCEndpoint_interfacePrivateDNS' PKG=ec2 ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 2 -run=TestAccVPCEndpoint_interfacePrivateDNS -timeout 360m
=== RUN TestAccVPCEndpoint_interfacePrivateDNS
=== PAUSE TestAccVPCEndpoint_interfacePrivateDNS
=== RUN TestAccVPCEndpoint_interfacePrivateDNSNoGateway
=== PAUSE TestAccVPCEndpoint_interfacePrivateDNSNoGateway
=== CONT TestAccVPCEndpoint_interfacePrivateDNS
=== CONT TestAccVPCEndpoint_interfacePrivateDNSNoGateway
--- PASS: TestAccVPCEndpoint_interfacePrivateDNSNoGateway (428.07s)
--- PASS: TestAccVPCEndpoint_interfacePrivateDNS (566.02s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 571.499s
@silvaalbert Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.20.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 pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
Fixes an issue by which not populating
dns_record_type
causes a diff on future plans/applys.Relations
Closes #33449
Output from Acceptance Testing