-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
service/ec2: Add COIP support to aws_subnet resource and data source #16676
Conversation
Reference: #13170 Reference: #13171 Output from acceptance testing in OTL account: ``` --- PASS: TestAccDataSourceAwsSubnet_basic (25.67s) --- PASS: TestAccDataSourceAwsSubnet_ipv6ByIpv6CidrBlock (46.37s) --- PASS: TestAccDataSourceAwsSubnet_ipv6ByIpv6Filter (51.83s) --- PASS: TestAccAWSSubnet_availabilityZoneId (29.12s) --- PASS: TestAccAWSSubnet_basic (31.04s) --- PASS: TestAccAWSSubnet_CustomerOwnedIpv4Pool (63.80s) --- PASS: TestAccAWSSubnet_disappears (21.79s) --- PASS: TestAccAWSSubnet_enableIpv6 (79.03s) --- PASS: TestAccAWSSubnet_ignoreTags (45.48s) --- PASS: TestAccAWSSubnet_ipv6 (90.26s) --- PASS: TestAccAWSSubnet_MapCustomerOwnedIpOnLaunch (49.07s) --- PASS: TestAccAWSSubnet_outpost (47.45s) --- PASS: TestAccAWSSubnet_tags (68.74s) ```
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.
Looks good to me 🚀
Results in Commercial partition
--- SKIP: TestAccAWSSubnet_outpost (1.09s)
--- SKIP: TestAccAWSSubnet_MapCustomerOwnedIpOnLaunch (0.96s)
--- SKIP: TestAccAWSSubnet_CustomerOwnedIpv4Pool (1.18s)
--- PASS: TestAccDataSourceAwsSubnetIDs_filter (29.83s)
--- PASS: TestAccAWSSubnet_disappears (29.97s)
--- PASS: TestAccDataSourceAwsSubnet_basic (38.78s)
--- PASS: TestAccAWSSubnet_basic (45.75s)
--- PASS: TestAccAWSSubnet_availabilityZoneId (45.91s)
--- PASS: TestAccDataSourceAwsSubnetIDs_basic (55.71s)
--- PASS: TestAccDataSourceAwsSubnet_ipv6ByIpv6Filter (56.37s)
--- PASS: TestAccDataSourceAwsSubnet_ipv6ByIpv6CidrBlock (57.99s)
--- PASS: TestAccAWSSubnet_ignoreTags (58.47s)
--- PASS: TestAccAWSSubnet_enableIpv6 (72.16s)
--- PASS: TestAccAWSSubnet_tags (74.25s)
--- PASS: TestAccAWSSubnet_ipv6 (77.68s)
Results in GovCloud partition
--- SKIP: TestAccAWSSubnet_MapCustomerOwnedIpOnLaunch (1.02s)
--- SKIP: TestAccAWSSubnet_outpost (0.82s)
--- SKIP: TestAccAWSSubnet_CustomerOwnedIpv4Pool (1.07s)
--- PASS: TestAccAWSSubnet_disappears (38.95s)
--- PASS: TestAccDataSourceAwsSubnetIDs_filter (39.09s)
--- PASS: TestAccDataSourceAwsSubnet_basic (41.34s)
--- PASS: TestAccAWSSubnet_basic (44.78s)
--- PASS: TestAccAWSSubnet_availabilityZoneId (45.37s)
--- PASS: TestAccDataSourceAwsSubnetIDs_basic (55.51s)
--- PASS: TestAccDataSourceAwsSubnet_ipv6ByIpv6CidrBlock (55.74s)
--- PASS: TestAccAWSSubnet_ignoreTags (55.90s)
--- PASS: TestAccDataSourceAwsSubnet_ipv6ByIpv6Filter (56.93s)
--- PASS: TestAccAWSSubnet_tags (68.28s)
--- PASS: TestAccAWSSubnet_enableIpv6 (69.09s)
--- PASS: TestAccAWSSubnet_ipv6 (71.03s)
…_launch attribute and tidy up attribute testing Reference: #16696 This resource attribute has long been the cause of flakey acceptance testing across the codebase, such as: ``` === CONT TestAccAWSLB_applicationLoadBalancer_updateHttp2 TestAccAWSLB_applicationLoadBalancer_updateHttp2: resource_aws_lb_test.go:522: Step 1/3 error: After applying this test step, the plan was not empty. stdout: An execution plan has been generated and is shown below. Resource actions are indicated with the following symbols: ~ update in-place Terraform will perform the following actions: # aws_subnet.alb_test[0] will be updated in-place ~ resource "aws_subnet" "alb_test" { id = "subnet-088715d2b9827af18" ~ map_public_ip_on_launch = false -> true tags = { "Name" = "tf-acc-lb-basic-0" } # (7 unchanged attributes hidden) } Plan: 0 to add, 1 to change, 0 to destroy. ``` Adding logic, similar to `SubnetMapCustomerOwnedIpOnLaunchUpdated` in #16676 can be used to ensure the attribute value has flipped correctly after calling the `ModifySubnetAttribute` API. This attribute waiter setup will be added to a forthcoming Retries and Waiters section in the Contribution Guide. Output from acceptance testing in AWS Commercial: ``` --- PASS: TestAccAWSLB_applicationLoadBalancer_updateHttp2 (302.23s) --- PASS: TestAccAWSSubnet_availabilityZoneId (37.76s) --- PASS: TestAccAWSSubnet_basic (35.50s) --- PASS: TestAccAWSSubnet_disappears (27.55s) --- PASS: TestAccAWSSubnet_enableIpv6 (88.46s) --- PASS: TestAccAWSSubnet_ignoreTags (57.96s) --- PASS: TestAccAWSSubnet_ipv6 (99.54s) --- PASS: TestAccAWSSubnet_MapPublicIpOnLaunch (99.92s) --- PASS: TestAccAWSSubnet_tags (84.05s) --- SKIP: TestAccAWSSubnet_CustomerOwnedIpv4Pool (7.36s) --- SKIP: TestAccAWSSubnet_MapCustomerOwnedIpOnLaunch (1.82s) --- SKIP: TestAccAWSSubnet_outpost (1.62s) ``` Output from acceptance testing in AWS GovCloud (US): ``` --- PASS: TestAccAWSLB_applicationLoadBalancer_updateHttp2 (310.96s) --- PASS: TestAccAWSSubnet_availabilityZoneId (42.49s) --- PASS: TestAccAWSSubnet_basic (39.27s) --- PASS: TestAccAWSSubnet_disappears (31.78s) --- PASS: TestAccAWSSubnet_enableIpv6 (100.77s) --- PASS: TestAccAWSSubnet_ignoreTags (67.49s) --- PASS: TestAccAWSSubnet_ipv6 (108.38s) --- PASS: TestAccAWSSubnet_MapPublicIpOnLaunch (109.87s) --- PASS: TestAccAWSSubnet_tags (95.24s) --- SKIP: TestAccAWSSubnet_CustomerOwnedIpv4Pool (7.11s) --- SKIP: TestAccAWSSubnet_MapCustomerOwnedIpOnLaunch (2.17s) --- SKIP: TestAccAWSSubnet_outpost (10.06s) ```
…rofile attribute Reference: #16769 This resource attribute has long been the cause of the following flakey acceptance test: ``` === CONT TestAccAWSInstance_instanceProfileChange TestAccAWSInstance_instanceProfileChange: resource_aws_instance_test.go:1134: Step 3/5 error: After applying this test step, the plan was not empty. stdout: An execution plan has been generated and is shown below. Resource actions are indicated with the following symbols: ~ update in-place Terraform will perform the following actions: ~ resource "aws_instance" "test" { + iam_instance_profile = "tf-testacc-instance-1obw9bpsudzr" id = "i-0748e5ca403753317" tags = { "Name" = "tf-testacc-instance-1obw9bpsudzr" } } ``` Adding logic, similar to `SubnetMapCustomerOwnedIpOnLaunchUpdated` in #16676 can be used to ensure the attribute value has flipped correctly after calling the `AssociateIamInstanceProfile`, `DisassociateIamInstanceProfile` or `ReplaceIamInstanceProfile` APIs. This attribute waiter setup will be added to a forthcoming Retries and Waiters section in the Contribution Guide. Output from acceptance testing in AWS Commercial: ``` --- PASS: TestAccAWSInstance_addSecondaryInterface (242.73s) --- PASS: TestAccAWSInstance_addSecurityGroupNetworkInterface (230.14s) --- PASS: TestAccAWSInstance_associatePublic_defaultPrivate (110.25s) --- PASS: TestAccAWSInstance_associatePublic_defaultPublic (110.99s) --- PASS: TestAccAWSInstance_associatePublic_explicitPrivate (100.21s) --- PASS: TestAccAWSInstance_associatePublic_explicitPublic (110.40s) --- PASS: TestAccAWSInstance_associatePublic_overridePrivate (109.74s) --- PASS: TestAccAWSInstance_associatePublic_overridePublic (131.67s) --- PASS: TestAccAWSInstance_associatePublicIPAndPrivateIP (146.51s) --- PASS: TestAccAWSInstance_atLeastOneOtherEbsVolume (193.28s) --- PASS: TestAccAWSInstance_basic (88.80s) --- PASS: TestAccAWSInstance_blockDevices (121.48s) --- PASS: TestAccAWSInstance_blockDeviceTags_ebsAndRoot (210.18s) --- PASS: TestAccAWSInstance_blockDeviceTags_volumeTags (218.14s) --- PASS: TestAccAWSInstance_blockDeviceTags_withAttachedVolume (274.15s) --- PASS: TestAccAWSInstance_changeInstanceType (279.18s) --- PASS: TestAccAWSInstance_CreditSpecification_Empty_NonBurstable (146.18s) --- PASS: TestAccAWSInstance_creditSpecification_isNotAppliedToNonBurstable (121.58s) --- PASS: TestAccAWSInstance_creditSpecification_standardCpuCredits (151.11s) --- PASS: TestAccAWSInstance_creditSpecification_standardCpuCredits_t2Tot3Taint (417.38s) --- PASS: TestAccAWSInstance_creditSpecification_unknownCpuCredits_t2 (108.53s) --- PASS: TestAccAWSInstance_creditSpecification_unknownCpuCredits_t3 (139.87s) --- PASS: TestAccAWSInstance_creditSpecification_unlimitedCpuCredits (142.36s) --- PASS: TestAccAWSInstance_creditSpecification_unlimitedCpuCredits_t2Tot3Taint (209.11s) --- PASS: TestAccAWSInstance_creditSpecification_unspecifiedDefaultsToStandard (111.75s) --- PASS: TestAccAWSInstance_CreditSpecification_UnspecifiedToEmpty_NonBurstable (114.39s) --- PASS: TestAccAWSInstance_creditSpecification_updateCpuCredits (180.11s) --- PASS: TestAccAWSInstance_creditSpecificationT3_standardCpuCredits (136.87s) --- PASS: TestAccAWSInstance_creditSpecificationT3_unlimitedCpuCredits (125.41s) --- PASS: TestAccAWSInstance_creditSpecificationT3_unspecifiedDefaultsToUnlimited (127.50s) --- PASS: TestAccAWSInstance_creditSpecificationT3_updateCpuCredits (180.12s) --- PASS: TestAccAWSInstance_dedicatedInstance (133.35s) --- PASS: TestAccAWSInstance_disableApiTermination (184.77s) --- PASS: TestAccAWSInstance_disappears (78.61s) --- PASS: TestAccAWSInstance_EbsBlockDevice_InvalidIopsForVolumeType (12.67s) --- PASS: TestAccAWSInstance_EbsBlockDevice_InvalidThroughputForVolumeType (10.14s) --- PASS: TestAccAWSInstance_EbsBlockDevice_KmsKeyArn (117.10s) --- PASS: TestAccAWSInstance_EbsRootDevice_basic (193.58s) --- PASS: TestAccAWSInstance_EbsRootDevice_ModifyAll (152.37s) --- PASS: TestAccAWSInstance_EbsRootDevice_ModifyDeleteOnTermination (153.09s) --- PASS: TestAccAWSInstance_EbsRootDevice_ModifyIOPS_Io1 (169.55s) --- PASS: TestAccAWSInstance_EbsRootDevice_ModifyIOPS_Io2 (194.13s) --- PASS: TestAccAWSInstance_EbsRootDevice_ModifySize (165.98s) --- PASS: TestAccAWSInstance_EbsRootDevice_ModifyThroughput_Gp3 (163.26s) --- PASS: TestAccAWSInstance_EbsRootDevice_ModifyType (183.84s) --- PASS: TestAccAWSInstance_EbsRootDevice_MultipleBlockDevices_ModifyDeleteOnTermination (147.87s) --- PASS: TestAccAWSInstance_EbsRootDevice_MultipleBlockDevices_ModifySize (192.81s) --- PASS: TestAccAWSInstance_EbsRootDevice_MultipleDynamicEBSBlockDevices (232.62s) --- PASS: TestAccAWSInstance_Empty_PrivateIP (145.38s) --- PASS: TestAccAWSInstance_enclaveOptions (219.52s) --- PASS: TestAccAWSInstance_forceNewAndTagsDrift (283.16s) --- PASS: TestAccAWSInstance_getPasswordData_falseToTrue (157.98s) --- PASS: TestAccAWSInstance_getPasswordData_trueToFalse (198.56s) --- PASS: TestAccAWSInstance_GP2IopsDevice (99.64s) --- PASS: TestAccAWSInstance_GP2WithIopsValue (43.96s) --- PASS: TestAccAWSInstance_hibernation (236.92s) --- PASS: TestAccAWSInstance_inDefaultVpcBySgId (103.41s) --- PASS: TestAccAWSInstance_inDefaultVpcBySgName (131.23s) --- PASS: TestAccAWSInstance_inEc2Classic (107.37s) --- PASS: TestAccAWSInstance_instanceProfileChange (328.37s) --- PASS: TestAccAWSInstance_ipv6_supportAddressCount (145.65s) --- PASS: TestAccAWSInstance_ipv6_supportAddressCountWithIpv4 (101.01s) --- PASS: TestAccAWSInstance_ipv6AddressCountAndSingleAddressCausesError (19.16s) --- PASS: TestAccAWSInstance_keyPairCheck (131.83s) --- PASS: TestAccAWSInstance_metadataOptions (157.61s) --- PASS: TestAccAWSInstance_NetworkInstanceRemovingAllSecurityGroups (189.12s) --- PASS: TestAccAWSInstance_NetworkInstanceSecurityGroups (162.78s) --- PASS: TestAccAWSInstance_NetworkInstanceVPCSecurityGroupIDs (157.66s) --- PASS: TestAccAWSInstance_NewNetworkInterface_EmptyPrivateIPAndSecondaryPrivateIPs (149.96s) --- PASS: TestAccAWSInstance_NewNetworkInterface_EmptyPrivateIPAndSecondaryPrivateIPsUpdate (220.50s) --- PASS: TestAccAWSInstance_NewNetworkInterface_PrivateIPAndSecondaryPrivateIPs (121.07s) --- PASS: TestAccAWSInstance_NewNetworkInterface_PrivateIPAndSecondaryPrivateIPsUpdate (180.92s) --- PASS: TestAccAWSInstance_NewNetworkInterface_PublicIPAndSecondaryPrivateIPs (297.98s) --- PASS: TestAccAWSInstance_noAMIEphemeralDevices (121.40s) --- PASS: TestAccAWSInstance_placementGroup (121.32s) --- PASS: TestAccAWSInstance_primaryNetworkInterface (157.80s) --- PASS: TestAccAWSInstance_primaryNetworkInterfaceSourceDestCheck (189.25s) --- PASS: TestAccAWSInstance_privateIP (147.33s) --- PASS: TestAccAWSInstance_RootBlockDevice_KmsKeyArn (120.64s) --- PASS: TestAccAWSInstance_rootBlockDeviceMismatch (162.61s) --- PASS: TestAccAWSInstance_rootInstanceStore (101.64s) --- PASS: TestAccAWSInstance_sourceDestCheck (238.40s) --- PASS: TestAccAWSInstance_tags (143.95s) --- PASS: TestAccAWSInstance_UserData_EmptyStringToUnspecified (157.16s) --- PASS: TestAccAWSInstance_UserData_UnspecifiedToEmptyString (136.23s) --- PASS: TestAccAWSInstance_userDataBase64 (156.05s) --- PASS: TestAccAWSInstance_withIamInstanceProfile (127.90s) --- SKIP: TestAccAWSInstance_outpost (1.88s) --- PASS: TestAccAWSInstanceDataSource_AzUserData (106.26s) --- PASS: TestAccAWSInstanceDataSource_basic (110.08s) --- PASS: TestAccAWSInstanceDataSource_blockDevices (117.74s) --- PASS: TestAccAWSInstanceDataSource_blockDeviceTags (121.08s) --- PASS: TestAccAWSInstanceDataSource_creditSpecification (116.29s) --- PASS: TestAccAWSInstanceDataSource_EbsBlockDevice_KmsKeyId (136.51s) --- PASS: TestAccAWSInstanceDataSource_enclaveOptions (87.52s) --- PASS: TestAccAWSInstanceDataSource_getPasswordData_falseToTrue (188.34s) --- PASS: TestAccAWSInstanceDataSource_getPasswordData_trueToFalse (275.27s) --- PASS: TestAccAWSInstanceDataSource_GetUserData (208.51s) --- PASS: TestAccAWSInstanceDataSource_GetUserData_NoUserData (234.58s) --- PASS: TestAccAWSInstanceDataSource_gp2IopsDevice (98.45s) --- PASS: TestAccAWSInstanceDataSource_gp3ThroughputDevice (100.55s) --- PASS: TestAccAWSInstanceDataSource_keyPair (111.47s) --- PASS: TestAccAWSInstanceDataSource_metadataOptions (122.07s) --- PASS: TestAccAWSInstanceDataSource_PlacementGroup (129.96s) --- PASS: TestAccAWSInstanceDataSource_privateIP (113.30s) --- PASS: TestAccAWSInstanceDataSource_RootBlockDevice_KmsKeyId (110.23s) --- PASS: TestAccAWSInstanceDataSource_rootInstanceStore (120.74s) --- PASS: TestAccAWSInstanceDataSource_secondaryPrivateIPs (125.40s) --- PASS: TestAccAWSInstanceDataSource_SecurityGroups (126.16s) --- PASS: TestAccAWSInstanceDataSource_tags (96.07s) --- PASS: TestAccAWSInstanceDataSource_VPC (126.74s) --- PASS: TestAccAWSInstanceDataSource_VPCSecurityGroups (135.88s) ``` Output from acceptance testing in AWS GovCloud (US): ``` --- FAIL: TestAccAWSInstance_dedicatedInstance (31.08s) # #17412 --- FAIL: TestAccAWSInstance_EbsRootDevice_ModifyIOPS_Io2 (12.77s) # #17412 --- FAIL: TestAccAWSInstance_enclaveOptions (31.10s) # #17412 --- PASS: TestAccAWSInstance_addSecondaryInterface (201.36s) --- PASS: TestAccAWSInstance_addSecurityGroupNetworkInterface (169.84s) --- PASS: TestAccAWSInstance_associatePublic_defaultPrivate (100.80s) --- PASS: TestAccAWSInstance_associatePublic_defaultPublic (112.34s) --- PASS: TestAccAWSInstance_associatePublic_explicitPrivate (94.40s) --- PASS: TestAccAWSInstance_associatePublic_explicitPublic (112.61s) --- PASS: TestAccAWSInstance_associatePublic_overridePrivate (93.90s) --- PASS: TestAccAWSInstance_associatePublic_overridePublic (83.17s) --- PASS: TestAccAWSInstance_associatePublicIPAndPrivateIP (98.45s) --- PASS: TestAccAWSInstance_atLeastOneOtherEbsVolume (174.93s) --- PASS: TestAccAWSInstance_basic (90.77s) --- PASS: TestAccAWSInstance_blockDevices (124.40s) --- PASS: TestAccAWSInstance_blockDeviceTags_ebsAndRoot (144.71s) --- PASS: TestAccAWSInstance_blockDeviceTags_volumeTags (189.71s) --- PASS: TestAccAWSInstance_blockDeviceTags_withAttachedVolume (184.30s) --- PASS: TestAccAWSInstance_changeInstanceType (178.33s) --- PASS: TestAccAWSInstance_CreditSpecification_Empty_NonBurstable (140.47s) --- PASS: TestAccAWSInstance_creditSpecification_isNotAppliedToNonBurstable (111.53s) --- PASS: TestAccAWSInstance_creditSpecification_standardCpuCredits (120.43s) --- PASS: TestAccAWSInstance_creditSpecification_standardCpuCredits_t2Tot3Taint (223.58s) --- PASS: TestAccAWSInstance_creditSpecification_unknownCpuCredits_t2 (98.06s) --- PASS: TestAccAWSInstance_creditSpecification_unknownCpuCredits_t3 (90.11s) --- PASS: TestAccAWSInstance_creditSpecification_unlimitedCpuCredits (131.18s) --- PASS: TestAccAWSInstance_creditSpecification_unlimitedCpuCredits_t2Tot3Taint (196.64s) --- PASS: TestAccAWSInstance_creditSpecification_unspecifiedDefaultsToStandard (101.42s) --- PASS: TestAccAWSInstance_CreditSpecification_UnspecifiedToEmpty_NonBurstable (119.74s) --- PASS: TestAccAWSInstance_creditSpecification_updateCpuCredits (184.44s) --- PASS: TestAccAWSInstance_creditSpecificationT3_standardCpuCredits (135.21s) --- PASS: TestAccAWSInstance_creditSpecificationT3_unlimitedCpuCredits (167.30s) --- PASS: TestAccAWSInstance_creditSpecificationT3_unspecifiedDefaultsToUnlimited (100.56s) --- PASS: TestAccAWSInstance_creditSpecificationT3_updateCpuCredits (183.55s) --- PASS: TestAccAWSInstance_disableApiTermination (181.92s) --- PASS: TestAccAWSInstance_disappears (194.95s) --- PASS: TestAccAWSInstance_EbsBlockDevice_InvalidIopsForVolumeType (11.73s) --- PASS: TestAccAWSInstance_EbsBlockDevice_InvalidThroughputForVolumeType (10.91s) --- PASS: TestAccAWSInstance_EbsBlockDevice_KmsKeyArn (109.41s) --- PASS: TestAccAWSInstance_EbsRootDevice_basic (109.65s) --- PASS: TestAccAWSInstance_EbsRootDevice_ModifyAll (133.86s) --- PASS: TestAccAWSInstance_EbsRootDevice_ModifyDeleteOnTermination (147.04s) --- PASS: TestAccAWSInstance_EbsRootDevice_ModifyIOPS_Io1 (166.57s) --- PASS: TestAccAWSInstance_EbsRootDevice_ModifySize (156.04s) --- PASS: TestAccAWSInstance_EbsRootDevice_ModifyThroughput_Gp3 (134.16s) --- PASS: TestAccAWSInstance_EbsRootDevice_ModifyType (123.90s) --- PASS: TestAccAWSInstance_EbsRootDevice_MultipleBlockDevices_ModifyDeleteOnTermination (134.58s) --- PASS: TestAccAWSInstance_EbsRootDevice_MultipleBlockDevices_ModifySize (141.10s) --- PASS: TestAccAWSInstance_EbsRootDevice_MultipleDynamicEBSBlockDevices (202.53s) --- PASS: TestAccAWSInstance_Empty_PrivateIP (116.78s) --- PASS: TestAccAWSInstance_forceNewAndTagsDrift (173.61s) --- PASS: TestAccAWSInstance_getPasswordData_falseToTrue (146.02s) --- PASS: TestAccAWSInstance_getPasswordData_trueToFalse (191.54s) --- PASS: TestAccAWSInstance_GP2IopsDevice (86.02s) --- PASS: TestAccAWSInstance_GP2WithIopsValue (11.25s) --- PASS: TestAccAWSInstance_hibernation (256.05s) --- PASS: TestAccAWSInstance_inDefaultVpcBySgId (93.32s) --- PASS: TestAccAWSInstance_inDefaultVpcBySgName (106.90s) --- PASS: TestAccAWSInstance_instanceProfileChange (248.34s) --- PASS: TestAccAWSInstance_ipv6_supportAddressCount (112.67s) --- PASS: TestAccAWSInstance_ipv6_supportAddressCountWithIpv4 (114.70s) --- PASS: TestAccAWSInstance_ipv6AddressCountAndSingleAddressCausesError (29.25s) --- PASS: TestAccAWSInstance_keyPairCheck (98.40s) --- PASS: TestAccAWSInstance_metadataOptions (185.29s) --- PASS: TestAccAWSInstance_NetworkInstanceRemovingAllSecurityGroups (148.16s) --- PASS: TestAccAWSInstance_NetworkInstanceSecurityGroups (137.85s) --- PASS: TestAccAWSInstance_NetworkInstanceVPCSecurityGroupIDs (123.37s) --- PASS: TestAccAWSInstance_NewNetworkInterface_EmptyPrivateIPAndSecondaryPrivateIPs (135.65s) --- PASS: TestAccAWSInstance_NewNetworkInterface_EmptyPrivateIPAndSecondaryPrivateIPsUpdate (182.43s) --- PASS: TestAccAWSInstance_NewNetworkInterface_PrivateIPAndSecondaryPrivateIPs (101.76s) --- PASS: TestAccAWSInstance_NewNetworkInterface_PrivateIPAndSecondaryPrivateIPsUpdate (187.35s) --- PASS: TestAccAWSInstance_NewNetworkInterface_PublicIPAndSecondaryPrivateIPs (197.08s) --- PASS: TestAccAWSInstance_noAMIEphemeralDevices (92.96s) --- PASS: TestAccAWSInstance_placementGroup (126.79s) --- PASS: TestAccAWSInstance_primaryNetworkInterface (156.42s) --- PASS: TestAccAWSInstance_primaryNetworkInterfaceSourceDestCheck (125.43s) --- PASS: TestAccAWSInstance_privateIP (106.48s) --- PASS: TestAccAWSInstance_RootBlockDevice_KmsKeyArn (80.05s) --- PASS: TestAccAWSInstance_rootInstanceStore (111.78s) --- PASS: TestAccAWSInstance_sourceDestCheck (213.01s) --- PASS: TestAccAWSInstance_tags (128.83s) --- PASS: TestAccAWSInstance_UserData_EmptyStringToUnspecified (148.75s) --- PASS: TestAccAWSInstance_UserData_UnspecifiedToEmptyString (158.81s) --- PASS: TestAccAWSInstance_userDataBase64 (117.21s) --- PASS: TestAccAWSInstance_withIamInstanceProfile (123.11s) --- SKIP: TestAccAWSInstance_inEc2Classic (1.40s) --- SKIP: TestAccAWSInstance_outpost (0.70s) --- SKIP: TestAccAWSInstance_rootBlockDeviceMismatch (0.00s) --- FAIL: TestAccAWSInstanceDataSource_enclaveOptions (33.30s) # #17412 --- PASS: TestAccAWSInstanceDataSource_AzUserData (86.49s) --- PASS: TestAccAWSInstanceDataSource_basic (119.95s) --- PASS: TestAccAWSInstanceDataSource_blockDevices (128.42s) --- PASS: TestAccAWSInstanceDataSource_blockDeviceTags (130.34s) --- PASS: TestAccAWSInstanceDataSource_creditSpecification (119.83s) --- PASS: TestAccAWSInstanceDataSource_EbsBlockDevice_KmsKeyId (101.52s) --- PASS: TestAccAWSInstanceDataSource_getPasswordData_falseToTrue (175.43s) --- PASS: TestAccAWSInstanceDataSource_getPasswordData_trueToFalse (225.22s) --- PASS: TestAccAWSInstanceDataSource_GetUserData (240.00s) --- PASS: TestAccAWSInstanceDataSource_GetUserData_NoUserData (226.72s) --- PASS: TestAccAWSInstanceDataSource_gp2IopsDevice (99.37s) --- PASS: TestAccAWSInstanceDataSource_gp3ThroughputDevice (98.23s) --- PASS: TestAccAWSInstanceDataSource_keyPair (120.55s) --- PASS: TestAccAWSInstanceDataSource_metadataOptions (131.12s) --- PASS: TestAccAWSInstanceDataSource_PlacementGroup (150.17s) --- PASS: TestAccAWSInstanceDataSource_privateIP (112.23s) --- PASS: TestAccAWSInstanceDataSource_RootBlockDevice_KmsKeyId (159.42s) --- PASS: TestAccAWSInstanceDataSource_rootInstanceStore (128.18s) --- PASS: TestAccAWSInstanceDataSource_secondaryPrivateIPs (117.31s) --- PASS: TestAccAWSInstanceDataSource_SecurityGroups (114.26s) --- PASS: TestAccAWSInstanceDataSource_tags (117.87s) --- PASS: TestAccAWSInstanceDataSource_VPC (121.68s) --- PASS: TestAccAWSInstanceDataSource_VPCSecurityGroups (144.39s) ```
…_launch attribute and tidy up attribute testing (#17410) Reference: #16696 This resource attribute has long been the cause of flakey acceptance testing across the codebase, such as: ``` === CONT TestAccAWSLB_applicationLoadBalancer_updateHttp2 TestAccAWSLB_applicationLoadBalancer_updateHttp2: resource_aws_lb_test.go:522: Step 1/3 error: After applying this test step, the plan was not empty. stdout: An execution plan has been generated and is shown below. Resource actions are indicated with the following symbols: ~ update in-place Terraform will perform the following actions: # aws_subnet.alb_test[0] will be updated in-place ~ resource "aws_subnet" "alb_test" { id = "subnet-088715d2b9827af18" ~ map_public_ip_on_launch = false -> true tags = { "Name" = "tf-acc-lb-basic-0" } # (7 unchanged attributes hidden) } Plan: 0 to add, 1 to change, 0 to destroy. ``` Adding logic, similar to `SubnetMapCustomerOwnedIpOnLaunchUpdated` in #16676 can be used to ensure the attribute value has flipped correctly after calling the `ModifySubnetAttribute` API. This attribute waiter setup will be added to a forthcoming Retries and Waiters section in the Contribution Guide. Output from acceptance testing in AWS Commercial: ``` --- PASS: TestAccAWSLB_applicationLoadBalancer_updateHttp2 (302.23s) --- PASS: TestAccAWSSubnet_availabilityZoneId (37.76s) --- PASS: TestAccAWSSubnet_basic (35.50s) --- PASS: TestAccAWSSubnet_disappears (27.55s) --- PASS: TestAccAWSSubnet_enableIpv6 (88.46s) --- PASS: TestAccAWSSubnet_ignoreTags (57.96s) --- PASS: TestAccAWSSubnet_ipv6 (99.54s) --- PASS: TestAccAWSSubnet_MapPublicIpOnLaunch (99.92s) --- PASS: TestAccAWSSubnet_tags (84.05s) --- SKIP: TestAccAWSSubnet_CustomerOwnedIpv4Pool (7.36s) --- SKIP: TestAccAWSSubnet_MapCustomerOwnedIpOnLaunch (1.82s) --- SKIP: TestAccAWSSubnet_outpost (1.62s) ``` Output from acceptance testing in AWS GovCloud (US): ``` --- PASS: TestAccAWSLB_applicationLoadBalancer_updateHttp2 (310.96s) --- PASS: TestAccAWSSubnet_availabilityZoneId (42.49s) --- PASS: TestAccAWSSubnet_basic (39.27s) --- PASS: TestAccAWSSubnet_disappears (31.78s) --- PASS: TestAccAWSSubnet_enableIpv6 (100.77s) --- PASS: TestAccAWSSubnet_ignoreTags (67.49s) --- PASS: TestAccAWSSubnet_ipv6 (108.38s) --- PASS: TestAccAWSSubnet_MapPublicIpOnLaunch (109.87s) --- PASS: TestAccAWSSubnet_tags (95.24s) --- SKIP: TestAccAWSSubnet_CustomerOwnedIpv4Pool (7.11s) --- SKIP: TestAccAWSSubnet_MapCustomerOwnedIpOnLaunch (2.17s) --- SKIP: TestAccAWSSubnet_outpost (10.06s) ```
…s and enable_dns_support attributes Reference: #16697 This resource attribute has long been the cause of flakey acceptance testing across the codebase, such as: ``` === CONT TestAccAWSEMRInstanceGroup_InstanceCount TestAccAWSEMRInstanceGroup_InstanceCount: resource_aws_emr_instance_group_test.go:181: Step 1/3 error: After applying this test step, the plan was not empty. stdout: An execution plan has been generated and is shown below. Resource actions are indicated with the following symbols: ~ update in-place Terraform will perform the following actions: ~ resource "aws_vpc" "main" { ~ enable_dns_hostnames = false -> true id = "vpc-0b7f7f7c1601ee31f" } Plan: 0 to add, 1 to change, 0 to destroy. --- FAIL: TestAccAWSEMRInstanceGroup_InstanceCount (809.62s) ``` Adding logic, similar to `SubnetMapCustomerOwnedIpOnLaunchUpdated` in #16676 can be used to ensure the attribute value has flipped correctly after calling the `ModifyVpcAttribute` API. This type of waiter logic will be documented in an upcoming Retries and Waiters section of the Contribution Guide. Output from acceptance testing in AWS Commercial: ``` --- PASS: TestAccAWSVpc_AssignGeneratedIpv6CidrBlock (79.17s) --- PASS: TestAccAWSVpc_basic (33.46s) --- PASS: TestAccAWSVpc_bothDnsOptionsSet (42.70s) --- PASS: TestAccAWSVpc_classiclinkDnsSupportOptionSet (36.56s) --- PASS: TestAccAWSVpc_classiclinkOptionSet (34.72s) --- PASS: TestAccAWSVpc_coreMismatchedDiffs (27.89s) --- PASS: TestAccAWSVpc_DisabledDnsSupport (42.71s) --- PASS: TestAccAWSVpc_disappears (20.00s) --- PASS: TestAccAWSVpc_ignoreTags (58.33s) --- PASS: TestAccAWSVpc_tags (75.02s) --- PASS: TestAccAWSVpc_Tenancy (77.02s) --- PASS: TestAccAWSVpc_update (62.26s) --- PASS: TestAccDataSourceAwsVpc_basic (32.46s) --- PASS: TestAccDataSourceAwsVpc_ipv6Associated (33.00s) --- PASS: TestAccDataSourceAwsVpc_multipleCidr (56.10s) --- PASS: TestAccAWSEMRCluster_additionalInfo (407.52s) --- PASS: TestAccAWSEMRInstanceGroup_InstanceCount (881.55s) ``` Output from acceptance testing in AWS GovCloud (US): ``` --- FAIL: TestAccAWSVpc_classiclinkDnsSupportOptionSet (17.50s) # #17460 --- FAIL: TestAccAWSVpc_classiclinkOptionSet (18.04s) # #17460 --- PASS: TestAccAWSVpc_AssignGeneratedIpv6CidrBlock (95.03s) --- PASS: TestAccAWSVpc_basic (42.63s) --- PASS: TestAccAWSVpc_bothDnsOptionsSet (52.27s) --- PASS: TestAccAWSVpc_coreMismatchedDiffs (38.50s) --- PASS: TestAccAWSVpc_DisabledDnsSupport (53.42s) --- PASS: TestAccAWSVpc_disappears (28.33s) --- PASS: TestAccAWSVpc_ignoreTags (69.32s) --- PASS: TestAccAWSVpc_tags (90.39s) --- PASS: TestAccAWSVpc_Tenancy (94.96s) --- PASS: TestAccAWSVpc_update (72.18s) --- PASS: TestAccDataSourceAwsVpc_basic (32.39s) --- PASS: TestAccDataSourceAwsVpc_ipv6Associated (51.24s) --- PASS: TestAccDataSourceAwsVpc_multipleCidr (67.27s) --- PASS: TestAccAWSEMRCluster_additionalInfo (355.27s) --- PASS: TestAccAWSEMRInstanceGroup_InstanceCount (856.03s) ```
This has been released in version 3.27.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 for triage. Thanks! |
…rofile attribute (#17414) Reference: #16769 This resource attribute has long been the cause of the following flakey acceptance test: ``` === CONT TestAccAWSInstance_instanceProfileChange TestAccAWSInstance_instanceProfileChange: resource_aws_instance_test.go:1134: Step 3/5 error: After applying this test step, the plan was not empty. stdout: An execution plan has been generated and is shown below. Resource actions are indicated with the following symbols: ~ update in-place Terraform will perform the following actions: ~ resource "aws_instance" "test" { + iam_instance_profile = "tf-testacc-instance-1obw9bpsudzr" id = "i-0748e5ca403753317" tags = { "Name" = "tf-testacc-instance-1obw9bpsudzr" } } ``` Adding logic, similar to `SubnetMapCustomerOwnedIpOnLaunchUpdated` in #16676 can be used to ensure the attribute value has flipped correctly after calling the `AssociateIamInstanceProfile`, `DisassociateIamInstanceProfile` or `ReplaceIamInstanceProfile` APIs. This attribute waiter setup will be added to a forthcoming Retries and Waiters section in the Contribution Guide. Output from acceptance testing in AWS Commercial: ``` --- PASS: TestAccAWSInstance_addSecondaryInterface (242.73s) --- PASS: TestAccAWSInstance_addSecurityGroupNetworkInterface (230.14s) --- PASS: TestAccAWSInstance_associatePublic_defaultPrivate (110.25s) --- PASS: TestAccAWSInstance_associatePublic_defaultPublic (110.99s) --- PASS: TestAccAWSInstance_associatePublic_explicitPrivate (100.21s) --- PASS: TestAccAWSInstance_associatePublic_explicitPublic (110.40s) --- PASS: TestAccAWSInstance_associatePublic_overridePrivate (109.74s) --- PASS: TestAccAWSInstance_associatePublic_overridePublic (131.67s) --- PASS: TestAccAWSInstance_associatePublicIPAndPrivateIP (146.51s) --- PASS: TestAccAWSInstance_atLeastOneOtherEbsVolume (193.28s) --- PASS: TestAccAWSInstance_basic (88.80s) --- PASS: TestAccAWSInstance_blockDevices (121.48s) --- PASS: TestAccAWSInstance_blockDeviceTags_ebsAndRoot (210.18s) --- PASS: TestAccAWSInstance_blockDeviceTags_volumeTags (218.14s) --- PASS: TestAccAWSInstance_blockDeviceTags_withAttachedVolume (274.15s) --- PASS: TestAccAWSInstance_changeInstanceType (279.18s) --- PASS: TestAccAWSInstance_CreditSpecification_Empty_NonBurstable (146.18s) --- PASS: TestAccAWSInstance_creditSpecification_isNotAppliedToNonBurstable (121.58s) --- PASS: TestAccAWSInstance_creditSpecification_standardCpuCredits (151.11s) --- PASS: TestAccAWSInstance_creditSpecification_standardCpuCredits_t2Tot3Taint (417.38s) --- PASS: TestAccAWSInstance_creditSpecification_unknownCpuCredits_t2 (108.53s) --- PASS: TestAccAWSInstance_creditSpecification_unknownCpuCredits_t3 (139.87s) --- PASS: TestAccAWSInstance_creditSpecification_unlimitedCpuCredits (142.36s) --- PASS: TestAccAWSInstance_creditSpecification_unlimitedCpuCredits_t2Tot3Taint (209.11s) --- PASS: TestAccAWSInstance_creditSpecification_unspecifiedDefaultsToStandard (111.75s) --- PASS: TestAccAWSInstance_CreditSpecification_UnspecifiedToEmpty_NonBurstable (114.39s) --- PASS: TestAccAWSInstance_creditSpecification_updateCpuCredits (180.11s) --- PASS: TestAccAWSInstance_creditSpecificationT3_standardCpuCredits (136.87s) --- PASS: TestAccAWSInstance_creditSpecificationT3_unlimitedCpuCredits (125.41s) --- PASS: TestAccAWSInstance_creditSpecificationT3_unspecifiedDefaultsToUnlimited (127.50s) --- PASS: TestAccAWSInstance_creditSpecificationT3_updateCpuCredits (180.12s) --- PASS: TestAccAWSInstance_dedicatedInstance (133.35s) --- PASS: TestAccAWSInstance_disableApiTermination (184.77s) --- PASS: TestAccAWSInstance_disappears (78.61s) --- PASS: TestAccAWSInstance_EbsBlockDevice_InvalidIopsForVolumeType (12.67s) --- PASS: TestAccAWSInstance_EbsBlockDevice_InvalidThroughputForVolumeType (10.14s) --- PASS: TestAccAWSInstance_EbsBlockDevice_KmsKeyArn (117.10s) --- PASS: TestAccAWSInstance_EbsRootDevice_basic (193.58s) --- PASS: TestAccAWSInstance_EbsRootDevice_ModifyAll (152.37s) --- PASS: TestAccAWSInstance_EbsRootDevice_ModifyDeleteOnTermination (153.09s) --- PASS: TestAccAWSInstance_EbsRootDevice_ModifyIOPS_Io1 (169.55s) --- PASS: TestAccAWSInstance_EbsRootDevice_ModifyIOPS_Io2 (194.13s) --- PASS: TestAccAWSInstance_EbsRootDevice_ModifySize (165.98s) --- PASS: TestAccAWSInstance_EbsRootDevice_ModifyThroughput_Gp3 (163.26s) --- PASS: TestAccAWSInstance_EbsRootDevice_ModifyType (183.84s) --- PASS: TestAccAWSInstance_EbsRootDevice_MultipleBlockDevices_ModifyDeleteOnTermination (147.87s) --- PASS: TestAccAWSInstance_EbsRootDevice_MultipleBlockDevices_ModifySize (192.81s) --- PASS: TestAccAWSInstance_EbsRootDevice_MultipleDynamicEBSBlockDevices (232.62s) --- PASS: TestAccAWSInstance_Empty_PrivateIP (145.38s) --- PASS: TestAccAWSInstance_enclaveOptions (219.52s) --- PASS: TestAccAWSInstance_forceNewAndTagsDrift (283.16s) --- PASS: TestAccAWSInstance_getPasswordData_falseToTrue (157.98s) --- PASS: TestAccAWSInstance_getPasswordData_trueToFalse (198.56s) --- PASS: TestAccAWSInstance_GP2IopsDevice (99.64s) --- PASS: TestAccAWSInstance_GP2WithIopsValue (43.96s) --- PASS: TestAccAWSInstance_hibernation (236.92s) --- PASS: TestAccAWSInstance_inDefaultVpcBySgId (103.41s) --- PASS: TestAccAWSInstance_inDefaultVpcBySgName (131.23s) --- PASS: TestAccAWSInstance_inEc2Classic (107.37s) --- PASS: TestAccAWSInstance_instanceProfileChange (328.37s) --- PASS: TestAccAWSInstance_ipv6_supportAddressCount (145.65s) --- PASS: TestAccAWSInstance_ipv6_supportAddressCountWithIpv4 (101.01s) --- PASS: TestAccAWSInstance_ipv6AddressCountAndSingleAddressCausesError (19.16s) --- PASS: TestAccAWSInstance_keyPairCheck (131.83s) --- PASS: TestAccAWSInstance_metadataOptions (157.61s) --- PASS: TestAccAWSInstance_NetworkInstanceRemovingAllSecurityGroups (189.12s) --- PASS: TestAccAWSInstance_NetworkInstanceSecurityGroups (162.78s) --- PASS: TestAccAWSInstance_NetworkInstanceVPCSecurityGroupIDs (157.66s) --- PASS: TestAccAWSInstance_NewNetworkInterface_EmptyPrivateIPAndSecondaryPrivateIPs (149.96s) --- PASS: TestAccAWSInstance_NewNetworkInterface_EmptyPrivateIPAndSecondaryPrivateIPsUpdate (220.50s) --- PASS: TestAccAWSInstance_NewNetworkInterface_PrivateIPAndSecondaryPrivateIPs (121.07s) --- PASS: TestAccAWSInstance_NewNetworkInterface_PrivateIPAndSecondaryPrivateIPsUpdate (180.92s) --- PASS: TestAccAWSInstance_NewNetworkInterface_PublicIPAndSecondaryPrivateIPs (297.98s) --- PASS: TestAccAWSInstance_noAMIEphemeralDevices (121.40s) --- PASS: TestAccAWSInstance_placementGroup (121.32s) --- PASS: TestAccAWSInstance_primaryNetworkInterface (157.80s) --- PASS: TestAccAWSInstance_primaryNetworkInterfaceSourceDestCheck (189.25s) --- PASS: TestAccAWSInstance_privateIP (147.33s) --- PASS: TestAccAWSInstance_RootBlockDevice_KmsKeyArn (120.64s) --- PASS: TestAccAWSInstance_rootBlockDeviceMismatch (162.61s) --- PASS: TestAccAWSInstance_rootInstanceStore (101.64s) --- PASS: TestAccAWSInstance_sourceDestCheck (238.40s) --- PASS: TestAccAWSInstance_tags (143.95s) --- PASS: TestAccAWSInstance_UserData_EmptyStringToUnspecified (157.16s) --- PASS: TestAccAWSInstance_UserData_UnspecifiedToEmptyString (136.23s) --- PASS: TestAccAWSInstance_userDataBase64 (156.05s) --- PASS: TestAccAWSInstance_withIamInstanceProfile (127.90s) --- SKIP: TestAccAWSInstance_outpost (1.88s) --- PASS: TestAccAWSInstanceDataSource_AzUserData (106.26s) --- PASS: TestAccAWSInstanceDataSource_basic (110.08s) --- PASS: TestAccAWSInstanceDataSource_blockDevices (117.74s) --- PASS: TestAccAWSInstanceDataSource_blockDeviceTags (121.08s) --- PASS: TestAccAWSInstanceDataSource_creditSpecification (116.29s) --- PASS: TestAccAWSInstanceDataSource_EbsBlockDevice_KmsKeyId (136.51s) --- PASS: TestAccAWSInstanceDataSource_enclaveOptions (87.52s) --- PASS: TestAccAWSInstanceDataSource_getPasswordData_falseToTrue (188.34s) --- PASS: TestAccAWSInstanceDataSource_getPasswordData_trueToFalse (275.27s) --- PASS: TestAccAWSInstanceDataSource_GetUserData (208.51s) --- PASS: TestAccAWSInstanceDataSource_GetUserData_NoUserData (234.58s) --- PASS: TestAccAWSInstanceDataSource_gp2IopsDevice (98.45s) --- PASS: TestAccAWSInstanceDataSource_gp3ThroughputDevice (100.55s) --- PASS: TestAccAWSInstanceDataSource_keyPair (111.47s) --- PASS: TestAccAWSInstanceDataSource_metadataOptions (122.07s) --- PASS: TestAccAWSInstanceDataSource_PlacementGroup (129.96s) --- PASS: TestAccAWSInstanceDataSource_privateIP (113.30s) --- PASS: TestAccAWSInstanceDataSource_RootBlockDevice_KmsKeyId (110.23s) --- PASS: TestAccAWSInstanceDataSource_rootInstanceStore (120.74s) --- PASS: TestAccAWSInstanceDataSource_secondaryPrivateIPs (125.40s) --- PASS: TestAccAWSInstanceDataSource_SecurityGroups (126.16s) --- PASS: TestAccAWSInstanceDataSource_tags (96.07s) --- PASS: TestAccAWSInstanceDataSource_VPC (126.74s) --- PASS: TestAccAWSInstanceDataSource_VPCSecurityGroups (135.88s) ``` Output from acceptance testing in AWS GovCloud (US): ``` --- FAIL: TestAccAWSInstance_dedicatedInstance (31.08s) # #17412 --- FAIL: TestAccAWSInstance_EbsRootDevice_ModifyIOPS_Io2 (12.77s) # #17412 --- FAIL: TestAccAWSInstance_enclaveOptions (31.10s) # #17412 --- PASS: TestAccAWSInstance_addSecondaryInterface (201.36s) --- PASS: TestAccAWSInstance_addSecurityGroupNetworkInterface (169.84s) --- PASS: TestAccAWSInstance_associatePublic_defaultPrivate (100.80s) --- PASS: TestAccAWSInstance_associatePublic_defaultPublic (112.34s) --- PASS: TestAccAWSInstance_associatePublic_explicitPrivate (94.40s) --- PASS: TestAccAWSInstance_associatePublic_explicitPublic (112.61s) --- PASS: TestAccAWSInstance_associatePublic_overridePrivate (93.90s) --- PASS: TestAccAWSInstance_associatePublic_overridePublic (83.17s) --- PASS: TestAccAWSInstance_associatePublicIPAndPrivateIP (98.45s) --- PASS: TestAccAWSInstance_atLeastOneOtherEbsVolume (174.93s) --- PASS: TestAccAWSInstance_basic (90.77s) --- PASS: TestAccAWSInstance_blockDevices (124.40s) --- PASS: TestAccAWSInstance_blockDeviceTags_ebsAndRoot (144.71s) --- PASS: TestAccAWSInstance_blockDeviceTags_volumeTags (189.71s) --- PASS: TestAccAWSInstance_blockDeviceTags_withAttachedVolume (184.30s) --- PASS: TestAccAWSInstance_changeInstanceType (178.33s) --- PASS: TestAccAWSInstance_CreditSpecification_Empty_NonBurstable (140.47s) --- PASS: TestAccAWSInstance_creditSpecification_isNotAppliedToNonBurstable (111.53s) --- PASS: TestAccAWSInstance_creditSpecification_standardCpuCredits (120.43s) --- PASS: TestAccAWSInstance_creditSpecification_standardCpuCredits_t2Tot3Taint (223.58s) --- PASS: TestAccAWSInstance_creditSpecification_unknownCpuCredits_t2 (98.06s) --- PASS: TestAccAWSInstance_creditSpecification_unknownCpuCredits_t3 (90.11s) --- PASS: TestAccAWSInstance_creditSpecification_unlimitedCpuCredits (131.18s) --- PASS: TestAccAWSInstance_creditSpecification_unlimitedCpuCredits_t2Tot3Taint (196.64s) --- PASS: TestAccAWSInstance_creditSpecification_unspecifiedDefaultsToStandard (101.42s) --- PASS: TestAccAWSInstance_CreditSpecification_UnspecifiedToEmpty_NonBurstable (119.74s) --- PASS: TestAccAWSInstance_creditSpecification_updateCpuCredits (184.44s) --- PASS: TestAccAWSInstance_creditSpecificationT3_standardCpuCredits (135.21s) --- PASS: TestAccAWSInstance_creditSpecificationT3_unlimitedCpuCredits (167.30s) --- PASS: TestAccAWSInstance_creditSpecificationT3_unspecifiedDefaultsToUnlimited (100.56s) --- PASS: TestAccAWSInstance_creditSpecificationT3_updateCpuCredits (183.55s) --- PASS: TestAccAWSInstance_disableApiTermination (181.92s) --- PASS: TestAccAWSInstance_disappears (194.95s) --- PASS: TestAccAWSInstance_EbsBlockDevice_InvalidIopsForVolumeType (11.73s) --- PASS: TestAccAWSInstance_EbsBlockDevice_InvalidThroughputForVolumeType (10.91s) --- PASS: TestAccAWSInstance_EbsBlockDevice_KmsKeyArn (109.41s) --- PASS: TestAccAWSInstance_EbsRootDevice_basic (109.65s) --- PASS: TestAccAWSInstance_EbsRootDevice_ModifyAll (133.86s) --- PASS: TestAccAWSInstance_EbsRootDevice_ModifyDeleteOnTermination (147.04s) --- PASS: TestAccAWSInstance_EbsRootDevice_ModifyIOPS_Io1 (166.57s) --- PASS: TestAccAWSInstance_EbsRootDevice_ModifySize (156.04s) --- PASS: TestAccAWSInstance_EbsRootDevice_ModifyThroughput_Gp3 (134.16s) --- PASS: TestAccAWSInstance_EbsRootDevice_ModifyType (123.90s) --- PASS: TestAccAWSInstance_EbsRootDevice_MultipleBlockDevices_ModifyDeleteOnTermination (134.58s) --- PASS: TestAccAWSInstance_EbsRootDevice_MultipleBlockDevices_ModifySize (141.10s) --- PASS: TestAccAWSInstance_EbsRootDevice_MultipleDynamicEBSBlockDevices (202.53s) --- PASS: TestAccAWSInstance_Empty_PrivateIP (116.78s) --- PASS: TestAccAWSInstance_forceNewAndTagsDrift (173.61s) --- PASS: TestAccAWSInstance_getPasswordData_falseToTrue (146.02s) --- PASS: TestAccAWSInstance_getPasswordData_trueToFalse (191.54s) --- PASS: TestAccAWSInstance_GP2IopsDevice (86.02s) --- PASS: TestAccAWSInstance_GP2WithIopsValue (11.25s) --- PASS: TestAccAWSInstance_hibernation (256.05s) --- PASS: TestAccAWSInstance_inDefaultVpcBySgId (93.32s) --- PASS: TestAccAWSInstance_inDefaultVpcBySgName (106.90s) --- PASS: TestAccAWSInstance_instanceProfileChange (248.34s) --- PASS: TestAccAWSInstance_ipv6_supportAddressCount (112.67s) --- PASS: TestAccAWSInstance_ipv6_supportAddressCountWithIpv4 (114.70s) --- PASS: TestAccAWSInstance_ipv6AddressCountAndSingleAddressCausesError (29.25s) --- PASS: TestAccAWSInstance_keyPairCheck (98.40s) --- PASS: TestAccAWSInstance_metadataOptions (185.29s) --- PASS: TestAccAWSInstance_NetworkInstanceRemovingAllSecurityGroups (148.16s) --- PASS: TestAccAWSInstance_NetworkInstanceSecurityGroups (137.85s) --- PASS: TestAccAWSInstance_NetworkInstanceVPCSecurityGroupIDs (123.37s) --- PASS: TestAccAWSInstance_NewNetworkInterface_EmptyPrivateIPAndSecondaryPrivateIPs (135.65s) --- PASS: TestAccAWSInstance_NewNetworkInterface_EmptyPrivateIPAndSecondaryPrivateIPsUpdate (182.43s) --- PASS: TestAccAWSInstance_NewNetworkInterface_PrivateIPAndSecondaryPrivateIPs (101.76s) --- PASS: TestAccAWSInstance_NewNetworkInterface_PrivateIPAndSecondaryPrivateIPsUpdate (187.35s) --- PASS: TestAccAWSInstance_NewNetworkInterface_PublicIPAndSecondaryPrivateIPs (197.08s) --- PASS: TestAccAWSInstance_noAMIEphemeralDevices (92.96s) --- PASS: TestAccAWSInstance_placementGroup (126.79s) --- PASS: TestAccAWSInstance_primaryNetworkInterface (156.42s) --- PASS: TestAccAWSInstance_primaryNetworkInterfaceSourceDestCheck (125.43s) --- PASS: TestAccAWSInstance_privateIP (106.48s) --- PASS: TestAccAWSInstance_RootBlockDevice_KmsKeyArn (80.05s) --- PASS: TestAccAWSInstance_rootInstanceStore (111.78s) --- PASS: TestAccAWSInstance_sourceDestCheck (213.01s) --- PASS: TestAccAWSInstance_tags (128.83s) --- PASS: TestAccAWSInstance_UserData_EmptyStringToUnspecified (148.75s) --- PASS: TestAccAWSInstance_UserData_UnspecifiedToEmptyString (158.81s) --- PASS: TestAccAWSInstance_userDataBase64 (117.21s) --- PASS: TestAccAWSInstance_withIamInstanceProfile (123.11s) --- SKIP: TestAccAWSInstance_inEc2Classic (1.40s) --- SKIP: TestAccAWSInstance_outpost (0.70s) --- SKIP: TestAccAWSInstance_rootBlockDeviceMismatch (0.00s) --- FAIL: TestAccAWSInstanceDataSource_enclaveOptions (33.30s) # #17412 --- PASS: TestAccAWSInstanceDataSource_AzUserData (86.49s) --- PASS: TestAccAWSInstanceDataSource_basic (119.95s) --- PASS: TestAccAWSInstanceDataSource_blockDevices (128.42s) --- PASS: TestAccAWSInstanceDataSource_blockDeviceTags (130.34s) --- PASS: TestAccAWSInstanceDataSource_creditSpecification (119.83s) --- PASS: TestAccAWSInstanceDataSource_EbsBlockDevice_KmsKeyId (101.52s) --- PASS: TestAccAWSInstanceDataSource_getPasswordData_falseToTrue (175.43s) --- PASS: TestAccAWSInstanceDataSource_getPasswordData_trueToFalse (225.22s) --- PASS: TestAccAWSInstanceDataSource_GetUserData (240.00s) --- PASS: TestAccAWSInstanceDataSource_GetUserData_NoUserData (226.72s) --- PASS: TestAccAWSInstanceDataSource_gp2IopsDevice (99.37s) --- PASS: TestAccAWSInstanceDataSource_gp3ThroughputDevice (98.23s) --- PASS: TestAccAWSInstanceDataSource_keyPair (120.55s) --- PASS: TestAccAWSInstanceDataSource_metadataOptions (131.12s) --- PASS: TestAccAWSInstanceDataSource_PlacementGroup (150.17s) --- PASS: TestAccAWSInstanceDataSource_privateIP (112.23s) --- PASS: TestAccAWSInstanceDataSource_RootBlockDevice_KmsKeyId (159.42s) --- PASS: TestAccAWSInstanceDataSource_rootInstanceStore (128.18s) --- PASS: TestAccAWSInstanceDataSource_secondaryPrivateIPs (117.31s) --- PASS: TestAccAWSInstanceDataSource_SecurityGroups (114.26s) --- PASS: TestAccAWSInstanceDataSource_tags (117.87s) --- PASS: TestAccAWSInstanceDataSource_VPC (121.68s) --- PASS: TestAccAWSInstanceDataSource_VPCSecurityGroups (144.39s) ```
…s and enable_dns_support attributes (#17461) Reference: #16697 This resource attribute has long been the cause of flakey acceptance testing across the codebase, such as: ``` === CONT TestAccAWSEMRInstanceGroup_InstanceCount TestAccAWSEMRInstanceGroup_InstanceCount: resource_aws_emr_instance_group_test.go:181: Step 1/3 error: After applying this test step, the plan was not empty. stdout: An execution plan has been generated and is shown below. Resource actions are indicated with the following symbols: ~ update in-place Terraform will perform the following actions: ~ resource "aws_vpc" "main" { ~ enable_dns_hostnames = false -> true id = "vpc-0b7f7f7c1601ee31f" } Plan: 0 to add, 1 to change, 0 to destroy. --- FAIL: TestAccAWSEMRInstanceGroup_InstanceCount (809.62s) ``` Adding logic, similar to `SubnetMapCustomerOwnedIpOnLaunchUpdated` in #16676 can be used to ensure the attribute value has flipped correctly after calling the `ModifyVpcAttribute` API. This type of waiter logic will be documented in an upcoming Retries and Waiters section of the Contribution Guide. Output from acceptance testing in AWS Commercial: ``` --- PASS: TestAccAWSVpc_AssignGeneratedIpv6CidrBlock (79.17s) --- PASS: TestAccAWSVpc_basic (33.46s) --- PASS: TestAccAWSVpc_bothDnsOptionsSet (42.70s) --- PASS: TestAccAWSVpc_classiclinkDnsSupportOptionSet (36.56s) --- PASS: TestAccAWSVpc_classiclinkOptionSet (34.72s) --- PASS: TestAccAWSVpc_coreMismatchedDiffs (27.89s) --- PASS: TestAccAWSVpc_DisabledDnsSupport (42.71s) --- PASS: TestAccAWSVpc_disappears (20.00s) --- PASS: TestAccAWSVpc_ignoreTags (58.33s) --- PASS: TestAccAWSVpc_tags (75.02s) --- PASS: TestAccAWSVpc_Tenancy (77.02s) --- PASS: TestAccAWSVpc_update (62.26s) --- PASS: TestAccDataSourceAwsVpc_basic (32.46s) --- PASS: TestAccDataSourceAwsVpc_ipv6Associated (33.00s) --- PASS: TestAccDataSourceAwsVpc_multipleCidr (56.10s) --- PASS: TestAccAWSEMRCluster_additionalInfo (407.52s) --- PASS: TestAccAWSEMRInstanceGroup_InstanceCount (881.55s) ``` Output from acceptance testing in AWS GovCloud (US): ``` --- FAIL: TestAccAWSVpc_classiclinkDnsSupportOptionSet (17.50s) # #17460 --- FAIL: TestAccAWSVpc_classiclinkOptionSet (18.04s) # #17460 --- PASS: TestAccAWSVpc_AssignGeneratedIpv6CidrBlock (95.03s) --- PASS: TestAccAWSVpc_basic (42.63s) --- PASS: TestAccAWSVpc_bothDnsOptionsSet (52.27s) --- PASS: TestAccAWSVpc_coreMismatchedDiffs (38.50s) --- PASS: TestAccAWSVpc_DisabledDnsSupport (53.42s) --- PASS: TestAccAWSVpc_disappears (28.33s) --- PASS: TestAccAWSVpc_ignoreTags (69.32s) --- PASS: TestAccAWSVpc_tags (90.39s) --- PASS: TestAccAWSVpc_Tenancy (94.96s) --- PASS: TestAccAWSVpc_update (72.18s) --- PASS: TestAccDataSourceAwsVpc_basic (32.39s) --- PASS: TestAccDataSourceAwsVpc_ipv6Associated (51.24s) --- PASS: TestAccDataSourceAwsVpc_multipleCidr (67.27s) --- PASS: TestAccAWSEMRCluster_additionalInfo (355.27s) --- PASS: TestAccAWSEMRInstanceGroup_InstanceCount (856.03s) ```
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. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Closes #13170
Closes #13171
Release note for CHANGELOG:
Output from acceptance testing in OTL account: