-
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
Prevent creation of duplicate aws_network_acl_rule
resources
#36326
Conversation
% make testacc TESTARGS='-run=TestAccVPCNetworkACLRule_duplicate' PKG=ec2 ACCTEST_PARALLELISM=3 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 3 -run=TestAccVPCNetworkACLRule_duplicate -timeout 360m === RUN TestAccVPCNetworkACLRule_duplicate === PAUSE TestAccVPCNetworkACLRule_duplicate === CONT TestAccVPCNetworkACLRule_duplicate --- PASS: TestAccVPCNetworkACLRule_duplicate (21.78s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 29.034s
Community NoteVoting for Prioritization
For Submitters
|
…in aws_route_table tests.
…figLatestAmazonLinux2HVMEBSX8664AMI()' as the Amazon-provided NAT AMI is EOL.
aws_network_acl_rule
resourcesaws_network_acl_rule
resources
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 PKG=ec2 TESTS="TestAccVPCNetworkACLRule_duplicate|TestAccVPCRoute_duplicate"
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 20 -run='TestAccVPCNetworkACLRule_duplicate|TestAccVPCRoute_duplicate' -timeout 360m
=== RUN TestAccVPCNetworkACLRule_duplicate
=== PAUSE TestAccVPCNetworkACLRule_duplicate
=== RUN TestAccVPCRoute_duplicate
=== PAUSE TestAccVPCRoute_duplicate
=== CONT TestAccVPCNetworkACLRule_duplicate
=== CONT TestAccVPCRoute_duplicate
--- PASS: TestAccVPCNetworkACLRule_duplicate (10.44s)
--- PASS: TestAccVPCRoute_duplicate (12.49s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 16.954s
This functionality has been released in v5.41.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
Checks for existence of network ACL rule or route with identical attributes during resource Create and returns error if found.
Relations
Closes #36324.
Relates #35747.
Closes #34462.
Output from Acceptance Testing