-
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
add subnet attribute: enable_lni_at_device_index #30798
add subnet attribute: enable_lni_at_device_index #30798
Conversation
Community NoteVoting for Prioritization
For Submitters
|
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=TestAccVPCSubnet_' 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=TestAccVPCSubnet_ -timeout 180m
=== RUN TestAccVPCSubnet_basic
=== PAUSE TestAccVPCSubnet_basic
=== RUN TestAccVPCSubnet_tags
=== PAUSE TestAccVPCSubnet_tags
=== RUN TestAccVPCSubnet_DefaultTags_providerOnly
=== PAUSE TestAccVPCSubnet_DefaultTags_providerOnly
=== RUN TestAccVPCSubnet_DefaultTags_updateToProviderOnly
=== PAUSE TestAccVPCSubnet_DefaultTags_updateToProviderOnly
=== RUN TestAccVPCSubnet_DefaultTags_updateToResourceOnly
=== PAUSE TestAccVPCSubnet_DefaultTags_updateToResourceOnly
=== RUN TestAccVPCSubnet_DefaultTagsProviderAndResource_nonOverlappingTag
=== PAUSE TestAccVPCSubnet_DefaultTagsProviderAndResource_nonOverlappingTag
=== RUN TestAccVPCSubnet_DefaultTagsProviderAndResource_overlappingTag
=== PAUSE TestAccVPCSubnet_DefaultTagsProviderAndResource_overlappingTag
=== RUN TestAccVPCSubnet_DefaultTagsProviderAndResource_duplicateTag
=== PAUSE TestAccVPCSubnet_DefaultTagsProviderAndResource_duplicateTag
=== RUN TestAccVPCSubnet_defaultAndIgnoreTags
=== PAUSE TestAccVPCSubnet_defaultAndIgnoreTags
=== RUN TestAccVPCSubnet_updateTagsKnownAtApply
=== PAUSE TestAccVPCSubnet_updateTagsKnownAtApply
=== RUN TestAccVPCSubnet_ignoreTags
=== PAUSE TestAccVPCSubnet_ignoreTags
=== RUN TestAccVPCSubnet_ipv6
=== PAUSE TestAccVPCSubnet_ipv6
=== RUN TestAccVPCSubnet_enableIPv6
=== PAUSE TestAccVPCSubnet_enableIPv6
=== RUN TestAccVPCSubnet_availabilityZoneID
=== PAUSE TestAccVPCSubnet_availabilityZoneID
=== RUN TestAccVPCSubnet_disappears
=== PAUSE TestAccVPCSubnet_disappears
=== RUN TestAccVPCSubnet_customerOwnedIPv4Pool
=== PAUSE TestAccVPCSubnet_customerOwnedIPv4Pool
=== RUN TestAccVPCSubnet_mapCustomerOwnedIPOnLaunch
=== PAUSE TestAccVPCSubnet_mapCustomerOwnedIPOnLaunch
=== RUN TestAccVPCSubnet_mapPublicIPOnLaunch
=== PAUSE TestAccVPCSubnet_mapPublicIPOnLaunch
=== RUN TestAccVPCSubnet_outpost
=== PAUSE TestAccVPCSubnet_outpost
=== RUN TestAccVPCSubnet_enableDNS64
=== PAUSE TestAccVPCSubnet_enableDNS64
=== RUN TestAccVPCSubnet_enableLNIAtDeviceIndex
=== PAUSE TestAccVPCSubnet_enableLNIAtDeviceIndex
=== RUN TestAccVPCSubnet_privateDNSNameOptionsOnLaunch
=== PAUSE TestAccVPCSubnet_privateDNSNameOptionsOnLaunch
=== RUN TestAccVPCSubnet_ipv6Native
=== PAUSE TestAccVPCSubnet_ipv6Native
=== CONT TestAccVPCSubnet_basic
=== CONT TestAccVPCSubnet_enableIPv6
=== CONT TestAccVPCSubnet_DefaultTagsProviderAndResource_overlappingTag
--- PASS: TestAccVPCSubnet_basic (22.54s)
=== CONT TestAccVPCSubnet_updateTagsKnownAtApply
--- PASS: TestAccVPCSubnet_DefaultTagsProviderAndResource_overlappingTag (46.00s)
=== CONT TestAccVPCSubnet_ipv6
--- PASS: TestAccVPCSubnet_updateTagsKnownAtApply (42.93s)
=== CONT TestAccVPCSubnet_ignoreTags
--- PASS: TestAccVPCSubnet_enableIPv6 (82.45s)
=== CONT TestAccVPCSubnet_defaultAndIgnoreTags
--- PASS: TestAccVPCSubnet_ignoreTags (37.46s)
=== CONT TestAccVPCSubnet_DefaultTags_updateToProviderOnly
--- PASS: TestAccVPCSubnet_defaultAndIgnoreTags (37.87s)
=== CONT TestAccVPCSubnet_DefaultTagsProviderAndResource_nonOverlappingTag
--- PASS: TestAccVPCSubnet_ipv6 (81.83s)
=== CONT TestAccVPCSubnet_DefaultTags_updateToResourceOnly
--- PASS: TestAccVPCSubnet_DefaultTags_updateToProviderOnly (35.93s)
=== CONT TestAccVPCSubnet_DefaultTagsProviderAndResource_duplicateTag
--- PASS: TestAccVPCSubnet_DefaultTagsProviderAndResource_duplicateTag (2.23s)
=== CONT TestAccVPCSubnet_DefaultTags_providerOnly
--- PASS: TestAccVPCSubnet_DefaultTags_updateToResourceOnly (35.46s)
=== CONT TestAccVPCSubnet_outpost
acctest.go:1047: skipping since no Outposts found
--- SKIP: TestAccVPCSubnet_outpost (0.83s)
=== CONT TestAccVPCSubnet_ipv6Native
--- PASS: TestAccVPCSubnet_DefaultTagsProviderAndResource_nonOverlappingTag (45.35s)
=== CONT TestAccVPCSubnet_privateDNSNameOptionsOnLaunch
--- PASS: TestAccVPCSubnet_DefaultTags_providerOnly (44.35s)
=== CONT TestAccVPCSubnet_enableLNIAtDeviceIndex
acctest.go:1047: skipping since no Outposts found
--- SKIP: TestAccVPCSubnet_enableLNIAtDeviceIndex (0.17s)
=== CONT TestAccVPCSubnet_enableDNS64
--- PASS: TestAccVPCSubnet_ipv6Native (31.46s)
=== CONT TestAccVPCSubnet_customerOwnedIPv4Pool
acctest.go:1047: skipping since no Outposts found
--- SKIP: TestAccVPCSubnet_customerOwnedIPv4Pool (0.18s)
=== CONT TestAccVPCSubnet_mapPublicIPOnLaunch
--- PASS: TestAccVPCSubnet_mapPublicIPOnLaunch (79.38s)
=== CONT TestAccVPCSubnet_mapCustomerOwnedIPOnLaunch
acctest.go:1047: skipping since no Outposts found
--- SKIP: TestAccVPCSubnet_mapCustomerOwnedIPOnLaunch (0.18s)
=== CONT TestAccVPCSubnet_tags
--- PASS: TestAccVPCSubnet_enableDNS64 (100.45s)
=== CONT TestAccVPCSubnet_disappears
--- PASS: TestAccVPCSubnet_disappears (18.30s)
=== CONT TestAccVPCSubnet_availabilityZoneID
--- PASS: TestAccVPCSubnet_privateDNSNameOptionsOnLaunch (152.68s)
--- PASS: TestAccVPCSubnet_tags (49.66s)
--- PASS: TestAccVPCSubnet_availabilityZoneID (22.65s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 332.583s
% AWS_DEFAULT_REGION=eu-west-1 make testacc TESTARGS='-run=TestAccVPCDefaultVPCAndSubnet_serial/Subnet' PKG=ec2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 20 -run=TestAccVPCDefaultVPCAndSubnet_serial/Subnet -timeout 180m
=== RUN TestAccVPCDefaultVPCAndSubnet_serial
=== PAUSE TestAccVPCDefaultVPCAndSubnet_serial
=== CONT TestAccVPCDefaultVPCAndSubnet_serial
=== RUN TestAccVPCDefaultVPCAndSubnet_serial/Subnet
=== RUN TestAccVPCDefaultVPCAndSubnet_serial/Subnet/existing.forceDestroy
=== RUN TestAccVPCDefaultVPCAndSubnet_serial/Subnet/existing.ipv6
=== RUN TestAccVPCDefaultVPCAndSubnet_serial/Subnet/existing.privateDnsNameOptionsOnLaunch
=== RUN TestAccVPCDefaultVPCAndSubnet_serial/Subnet/notFound.basic
vpc_default_subnet_test.go:63: Deleting existing default subnet: subnet-0d02adf1c339ae7e8
vpc_default_subnet_test.go:63: Deleting existing default subnet: subnet-0e74b86a0fe7845dd
vpc_default_subnet_test.go:63: Deleting existing default subnet: subnet-008eabfc8b4688ea2
=== RUN TestAccVPCDefaultVPCAndSubnet_serial/Subnet/notFound.ipv6Native
vpc_default_subnet_test.go:63: Deleting existing default subnet: subnet-09aaf7ec3f74540f9
vpc_default_subnet_test.go:63: Deleting existing default subnet: subnet-0251590dc4cc8ef16
vpc_default_subnet_test.go:63: Deleting existing default subnet: subnet-07aca9d87c4a45340
=== RUN TestAccVPCDefaultVPCAndSubnet_serial/Subnet/existing.basic
--- PASS: TestAccVPCDefaultVPCAndSubnet_serial (175.79s)
--- PASS: TestAccVPCDefaultVPCAndSubnet_serial/Subnet (175.79s)
--- PASS: TestAccVPCDefaultVPCAndSubnet_serial/Subnet/existing.forceDestroy (22.28s)
--- PASS: TestAccVPCDefaultVPCAndSubnet_serial/Subnet/existing.ipv6 (47.98s)
--- PASS: TestAccVPCDefaultVPCAndSubnet_serial/Subnet/existing.privateDnsNameOptionsOnLaunch (39.47s)
--- PASS: TestAccVPCDefaultVPCAndSubnet_serial/Subnet/notFound.basic (21.39s)
--- PASS: TestAccVPCDefaultVPCAndSubnet_serial/Subnet/notFound.ipv6Native (25.77s)
--- PASS: TestAccVPCDefaultVPCAndSubnet_serial/Subnet/existing.basic (18.90s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 181.007s
@silvaalbert Thanks for the contribution 🎉 👏. |
This functionality has been released in v4.64.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
Add attribute
enable_lni_at_device_index
toaws_subnet
resource & datasource.Relations
Closes #30779.
Closes #25631.
References
https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_Subnet.html
Output from Acceptance Testing
Attribute-specific resource test
Attribute-specific data source test
All resource tests
All data source tests