Skip to content
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

Support ipv6_addresses for data_source_aws_instance #17859

Merged

Conversation

rick-masters
Copy link
Contributor

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #12785

The docs did not need to be updated because this attribute is already documented but does not exist: hashicorp/terraform#14473

Output from acceptance testing:

--- PASS: TestAccAWSInstanceDataSource_blockDevices (64.90s)
--- PASS: TestAccAWSInstanceDataSource_RootBlockDevice_KmsKeyId (79.73s)
--- PASS: TestAccAWSInstanceDataSource_VPCSecurityGroups (85.27s)
--- PASS: TestAccAWSInstanceDataSource_SecurityGroups (87.17s)
--- PASS: TestAccAWSInstanceDataSource_AzUserData (88.19s)
--- PASS: TestAccAWSInstanceDataSource_gp3ThroughputDevice (89.10s)
--- PASS: TestAccAWSInstanceDataSource_EbsBlockDevice_KmsKeyId (89.68s)
--- PASS: TestAccAWSInstance_rootInstanceStore (111.77s)
--- PASS: TestAccAWSInstanceDataSource_keyPair (111.91s)
--- PASS: TestAccAWSInstanceDataSource_VPC (113.69s)
--- PASS: TestAccAWSInstanceDataSource_gp2IopsDevice (119.74s)
--- PASS: TestAccAWSInstanceDataSource_blockDeviceTags (121.32s)
--- PASS: TestAccAWSInstanceDataSource_getPasswordData_trueToFalse (172.56s)
--- PASS: TestAccAWSInstanceDataSource_tags (206.27s)
--- PASS: TestAccAWSInstanceDataSource_getPasswordData_falseToTrue (206.79s)
--- PASS: TestAccAWSInstanceDataSource_basic (207.90s)
--- PASS: TestAccAWSInstanceDataSource_metadataOptions (303.11s)
--- PASS: TestAccAWSInstanceDataSource_enclaveOptions (305.44s)
--- PASS: TestAccAWSInstanceDataSource_rootInstanceStore (309.75s)
--- PASS: TestAccAWSInstanceDataSource_GetUserData (97.71s)
--- PASS: TestAccAWSInstanceDataSource_GetUserData_NoUserData (102.48s)
--- PASS: TestAccAWSInstance_CreditSpecification_UnspecifiedToEmpty_NonBurstable (77.08s)
--- PASS: TestAccAWSInstanceDataSource_creditSpecification (176.24s)
--- PASS: TestAccAWSInstanceDataSource_secondaryPrivateIPs (70.43s)
--- PASS: TestAccAWSInstanceDataSource_privateIP (262.45s)
--- PASS: TestAccAWSInstanceDataSource_VPCSecurityGroups (185.82s)
--- PASS: TestAccAWSInstance_rootBlockDeviceMismatch (206.20s)
--- PASS: TestAccAWSInstance_CreditSpecification_Empty_NonBurstable (293.09s)
--- PASS: TestAccAWSInstance_GP2WithIopsValue (14.30s)
--- PASS: TestAccAWSInstance_EbsBlockDevice_InvalidThroughputForVolumeType (14.70s)
--- PASS: TestAccAWSInstance_EbsBlockDevice_InvalidIopsForVolumeType (14.74s)
--- PASS: TestAccAWSInstance_basic (78.38s)
--- PASS: TestAccAWSInstance_GP3RootBlockDevice (79.34s)
--- PASS: TestAccAWSInstance_blockDevices (84.98s)
--- PASS: TestAccAWSInstance_disappears (85.35s)
--- PASS: TestAccAWSInstance_Empty_PrivateIP (85.87s)
--- PASS: TestAccAWSInstance_EbsBlockDevice_KmsKeyArn (86.01s)
--- PASS: TestAccAWSInstance_ipv6_supportAddressCount (96.55s)
--- PASS: TestAccAWSInstance_ipv6_supportAddressCountWithIpv4 (96.96s)
--- PASS: TestAccAWSInstance_GP2IopsDevice (97.49s)
--- PASS: TestAccAWSInstance_EbsRootDevice_MultipleBlockDevices_ModifyDeleteOnTermination (102.96s)
--- PASS: TestAccAWSInstance_inDefaultVpcBySgId (103.19s)
--- PASS: TestAccAWSInstance_blockDeviceTags_ebsAndRoot (113.33s)
--- PASS: TestAccAWSInstance_EbsRootDevice_MultipleBlockDevices_ModifySize (131.51s)
--- PASS: TestAccAWSInstance_blockDeviceTags_volumeTags (140.27s)
--- PASS: TestAccAWSInstance_getPasswordData_falseToTrue (154.98s)
--- PASS: TestAccAWSInstance_getPasswordData_trueToFalse (156.01s)
--- PASS: TestAccAWSInstance_blockDeviceTags_withAttachedVolume (175.99s)
--- PASS: TestAccAWSInstance_EbsRootDevice_MultipleDynamicEBSBlockDevices (216.41s)
--- PASS: TestAccAWSInstance_hibernation (229.83s)
--- PASS: TestAccAWSInstance_NetworkInstanceRemovingAllSecurityGroups (109.14s)
--- PASS: TestAccAWSInstance_RootBlockDevice_KmsKeyArn (111.91s)
--- PASS: TestAccAWSInstance_addSecondaryInterface (152.97s)
--- PASS: TestAccAWSInstance_UserData_UnspecifiedToEmptyString (97.42s)
--- PASS: TestAccAWSInstance_UserData_EmptyStringToUnspecified (97.66s)
--- PASS: TestAccAWSInstance_NewNetworkInterface_PrivateIPAndSecondaryPrivateIPsUpdate (121.58s)
--- PASS: TestAccAWSInstance_NewNetworkInterface_EmptyPrivateIPAndSecondaryPrivateIPs (322.23s)
--- PASS: TestAccAWSInstance_NewNetworkInterface_EmptyPrivateIPAndSecondaryPrivateIPsUpdate (152.57s)
--- PASS: TestAccAWSInstance_NetworkInstanceSecurityGroups (92.39s)
--- PASS: TestAccAWSInstance_NetworkInstanceVPCSecurityGroupIDs (92.40s)
--- PASS: TestAccAWSInstance_addSecurityGroupNetworkInterface (170.66s)
--- PASS: TestAccAWSInstance_NewNetworkInterface_PrivateIPAndSecondaryPrivateIPs (351.77s)
--- PASS: TestAccAWSInstance_NewNetworkInterface_PublicIPAndSecondaryPrivateIPs (642.01s)
--- PASS: TestAccAWSInstance_ipv6_supportAddressCount (96.60s)
--- PASS: TestAccAWSInstance_associatePublic_overridePublic (105.64s)
--- PASS: TestAccAWSInstance_forceNewAndTagsDrift (172.72s)
--- PASS: TestAccAWSInstance_atLeastOneOtherEbsVolume (202.93s)
--- PASS: TestAccAWSInstance_creditSpecificationT3_updateCpuCredits (175.90s)
--- PASS: TestAccAWSInstance_creditSpecificationT3_standardCpuCredits (116.07s)
--- PASS: TestAccAWSInstance_creditSpecificationT3_unlimitedCpuCredits (146.35s)
--- PASS: TestAccAWSInstance_creditSpecification_isNotAppliedToNonBurstable (100.53s)
--- PASS: TestAccAWSInstance_associatePublic_overridePrivate (114.23s)
--- PASS: TestAccAWSInstance_enclaveOptions (429.37s)
--- PASS: TestAccAWSInstance_dedicatedInstance (114.61s)
--- PASS: TestAccAWSInstance_associatePublicIPAndPrivateIP (103.97s)
--- PASS: TestAccAWSInstance_creditSpecificationT3_unspecifiedDefaultsToUnlimited (319.82s)
--- PASS: TestAccAWSInstance_associatePublic_explicitPublic (101.33s)
--- PASS: TestAccAWSInstance_associatePublic_explicitPrivate (113.90s)
--- PASS: TestAccAWSInstance_associatePublic_defaultPublic (131.01s)
--- PASS: TestAccAWSInstance_ipv6_supportAddressCountWithIpv4 (103.86s)
--- PASS: TestAccAWSInstance_associatePublic_defaultPrivate (110.44s)
--- PASS: TestAccAWSInstance_disableApiTermination (140.43s)
--- PASS: TestAccAWSInstance_changeInstanceType (238.62s)
--- PASS: TestAccAWSInstance_ipv6AddressCountAndSingleAddressCausesError (18.45s)
--- PASS: TestAccAWSInstance_noAMIEphemeralDevices (73.54s)
--- PASS: TestAccAWSInstance_keyPairCheck (93.09s)
--- PASS: TestAccAWSInstance_withIamInstanceProfile (93.73s)
--- PASS: TestAccAWSInstance_inDefaultVpcBySgName (113.22s)
--- PASS: TestAccAWSInstance_tags (122.04s)
--- PASS: TestAccAWSInstance_instanceProfileChange (206.83s)
--- PASS: TestAccAWSInstance_withIamInstanceProfilePath (214.89s)
--- PASS: TestAccAWSInstancesDataSource_instanceStateNames (312.94s)
--- PASS: TestAccAWSInstancesDataSource_basic (312.99s)
--- PASS: TestAccAWSInstancesDataSource_tags (334.49s)
--- PASS: TestAccAWSInstance_userDataBase64 (105.32s)
--- PASS: TestAccAWSInstance_primaryNetworkInterface (114.25s)
--- PASS: TestAccAWSInstance_metadataOptions (118.15s)
--- PASS: TestAccAWSInstance_ipv6_supportAddressCount (82.39s)
--- PASS: TestAccAWSInstance_hibernation (199.67s)
--- PASS: TestAccAWSInstance_privateIP (85.47s)
--- PASS: TestAccAWSInstance_primaryNetworkInterfaceSourceDestCheck (125.35s)
--- PASS: TestAccAWSInstance_ipv6_supportAddressCountWithIpv4 (91.38s)
--- PASS: TestAccAWSInstance_placementGroup (105.78s)
--- PASS: TestAccAWSInstance_sourceDestCheck (146.78s)
--- PASS: TestAccAWSInstance_inEc2Classic (83.16s)

Tests were broken and I had to manually update an image type t2.large -> t2.2xlarge for these to pass:

--- PASS: TestAccAWSInstance_EbsRootDevice_ModifyDeleteOnTermination (98.98s)
--- PASS: TestAccAWSInstance_EbsRootDevice_ModifyAll (110.91s)
--- PASS: TestAccAWSInstance_EbsRootDevice_ModifySize (112.90s)
--- PASS: TestAccAWSInstance_EbsRootDevice_ModifyThroughput_Gp3 (115.71s)
--- PASS: TestAccAWSInstance_EbsRootDevice_ModifyType (98.34s)
--- PASS: TestAccAWSInstance_EbsRootDevice_ModifyIOPS_Io1 (118.68s)
--- PASS: TestAccAWSInstance_EbsRootDevice_ModifyIOPS_Io2 (109.21s)
--- PASS: TestAccAWSInstance_EbsRootDevice_basic (70.70s)


@rick-masters rick-masters requested a review from a team as a code owner February 28, 2021 01:17
@ghost ghost added size/XS Managed by automation to categorize the size of a PR. service/ec2 Issues and PRs that pertain to the ec2 service. labels Feb 28, 2021
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Feb 28, 2021
@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label Aug 27, 2021
@ewbankkit ewbankkit self-assigned this Aug 27, 2021
@ewbankkit ewbankkit force-pushed the f-data_aws_instance-ipv6_addresses branch from 2b224a5 to 423b3d0 Compare August 27, 2021 21:18
@github-actions github-actions bot added tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. size/M Managed by automation to categorize the size of a PR. and removed size/XS Managed by automation to categorize the size of a PR. labels Aug 27, 2021
@ewbankkit ewbankkit force-pushed the f-data_aws_instance-ipv6_addresses branch from 423b3d0 to bd0223d Compare August 27, 2021 21:21
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀.

Commercial
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSInstanceDataSource_ipv6Addresses\|TestAccAWSInstanceDataSource_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSInstanceDataSource_ipv6Addresses\|TestAccAWSInstanceDataSource_basic -timeout 180m
=== RUN   TestAccAWSInstanceDataSource_basic
=== PAUSE TestAccAWSInstanceDataSource_basic
=== RUN   TestAccAWSInstanceDataSource_ipv6Addresses
=== PAUSE TestAccAWSInstanceDataSource_ipv6Addresses
=== CONT  TestAccAWSInstanceDataSource_basic
=== CONT  TestAccAWSInstanceDataSource_ipv6Addresses
--- PASS: TestAccAWSInstanceDataSource_basic (92.90s)
--- PASS: TestAccAWSInstanceDataSource_ipv6Addresses (113.16s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	119.975s
GovCloud
 % make testacc TEST=./aws TESTARGS='-run=TestAccAWSInstanceDataSource_ipv6Addresses\|TestAccAWSInstanceDataSource_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSInstanceDataSource_ipv6Addresses\|TestAccAWSInstanceDataSource_basic -timeout 180m
=== RUN   TestAccAWSInstanceDataSource_basic
=== PAUSE TestAccAWSInstanceDataSource_basic
=== RUN   TestAccAWSInstanceDataSource_ipv6Addresses
=== PAUSE TestAccAWSInstanceDataSource_ipv6Addresses
=== CONT  TestAccAWSInstanceDataSource_basic
=== CONT  TestAccAWSInstanceDataSource_ipv6Addresses
--- PASS: TestAccAWSInstanceDataSource_basic (91.23s)
--- PASS: TestAccAWSInstanceDataSource_ipv6Addresses (122.24s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	125.414s

@ewbankkit
Copy link
Contributor

@rick-masters Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit 1ea62b4 into hashicorp:main Aug 27, 2021
@github-actions github-actions bot added this to the v3.57.0 milestone Aug 27, 2021
@github-actions
Copy link

github-actions bot commented Sep 2, 2021

This functionality has been released in v3.57.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!

@github-actions
Copy link

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/ec2 Issues and PRs that pertain to the ec2 service. size/M Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IPv6 data attribute documented but not working
2 participants