-
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
Add support for EC2 Instance Metadata Tags #22463
Conversation
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.
Welcome @hynd 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTING guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
EC2 Instance tags can now be exposed via the metadata service, if enabled via a metadata option: https://aws.amazon.com/about-aws/whats-new/2022/01/instance-tags-amazon-ec2-instance-metadata-service/ https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#work-with-tags-in-IMDS
bf61139
to
e040783
Compare
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=TestAccEC2Instance_\|TestAccEC2InstanceDataSource_\|TestAccEC2LaunchTemplate_\|TestAccEC2LaunchTemplateDataSource_' PKG=ec2 ACCTEST_PARALLELISM=4
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 4 -run=TestAccEC2Instance_\|TestAccEC2InstanceDataSource_\|TestAccEC2LaunchTemplate_\|TestAccEC2LaunchTemplateDataSource_ -timeout 180m
=== RUN TestAccEC2InstanceDataSource_basic
=== PAUSE TestAccEC2InstanceDataSource_basic
=== RUN TestAccEC2InstanceDataSource_tags
=== PAUSE TestAccEC2InstanceDataSource_tags
=== RUN TestAccEC2InstanceDataSource_azUserData
=== PAUSE TestAccEC2InstanceDataSource_azUserData
=== RUN TestAccEC2InstanceDataSource_gp2IopsDevice
=== PAUSE TestAccEC2InstanceDataSource_gp2IopsDevice
=== RUN TestAccEC2InstanceDataSource_gp3ThroughputDevice
=== PAUSE TestAccEC2InstanceDataSource_gp3ThroughputDevice
=== RUN TestAccEC2InstanceDataSource_blockDevices
=== PAUSE TestAccEC2InstanceDataSource_blockDevices
=== RUN TestAccEC2InstanceDataSource_EBSBlockDevice_kmsKeyID
=== PAUSE TestAccEC2InstanceDataSource_EBSBlockDevice_kmsKeyID
=== RUN TestAccEC2InstanceDataSource_RootBlockDevice_kmsKeyID
=== PAUSE TestAccEC2InstanceDataSource_RootBlockDevice_kmsKeyID
=== RUN TestAccEC2InstanceDataSource_rootInstanceStore
=== PAUSE TestAccEC2InstanceDataSource_rootInstanceStore
=== RUN TestAccEC2InstanceDataSource_privateIP
=== PAUSE TestAccEC2InstanceDataSource_privateIP
=== RUN TestAccEC2InstanceDataSource_secondaryPrivateIPs
=== PAUSE TestAccEC2InstanceDataSource_secondaryPrivateIPs
=== RUN TestAccEC2InstanceDataSource_ipv6Addresses
=== PAUSE TestAccEC2InstanceDataSource_ipv6Addresses
=== RUN TestAccEC2InstanceDataSource_keyPair
=== PAUSE TestAccEC2InstanceDataSource_keyPair
=== RUN TestAccEC2InstanceDataSource_vpc
=== PAUSE TestAccEC2InstanceDataSource_vpc
=== RUN TestAccEC2InstanceDataSource_placementGroup
=== PAUSE TestAccEC2InstanceDataSource_placementGroup
=== RUN TestAccEC2InstanceDataSource_securityGroups
=== PAUSE TestAccEC2InstanceDataSource_securityGroups
=== RUN TestAccEC2InstanceDataSource_vpcSecurityGroups
=== PAUSE TestAccEC2InstanceDataSource_vpcSecurityGroups
=== RUN TestAccEC2InstanceDataSource_GetPasswordData_trueToFalse
=== PAUSE TestAccEC2InstanceDataSource_GetPasswordData_trueToFalse
=== RUN TestAccEC2InstanceDataSource_GetPasswordData_falseToTrue
=== PAUSE TestAccEC2InstanceDataSource_GetPasswordData_falseToTrue
=== RUN TestAccEC2InstanceDataSource_getUserData
=== PAUSE TestAccEC2InstanceDataSource_getUserData
=== RUN TestAccEC2InstanceDataSource_GetUserData_noUserData
=== PAUSE TestAccEC2InstanceDataSource_GetUserData_noUserData
=== RUN TestAccEC2InstanceDataSource_creditSpecification
=== PAUSE TestAccEC2InstanceDataSource_creditSpecification
=== RUN TestAccEC2InstanceDataSource_metadataOptions
=== PAUSE TestAccEC2InstanceDataSource_metadataOptions
=== RUN TestAccEC2InstanceDataSource_enclaveOptions
=== PAUSE TestAccEC2InstanceDataSource_enclaveOptions
=== RUN TestAccEC2InstanceDataSource_blockDeviceTags
=== PAUSE TestAccEC2InstanceDataSource_blockDeviceTags
=== RUN TestAccEC2Instance_inDefaultVPCBySgName
=== PAUSE TestAccEC2Instance_inDefaultVPCBySgName
=== RUN TestAccEC2Instance_inDefaultVPCBySgID
=== PAUSE TestAccEC2Instance_inDefaultVPCBySgID
=== RUN TestAccEC2Instance_inEC2Classic
=== PAUSE TestAccEC2Instance_inEC2Classic
=== RUN TestAccEC2Instance_basic
=== PAUSE TestAccEC2Instance_basic
=== RUN TestAccEC2Instance_atLeastOneOtherEBSVolume
=== PAUSE TestAccEC2Instance_atLeastOneOtherEBSVolume
=== RUN TestAccEC2Instance_EBSBlockDevice_kmsKeyARN
=== PAUSE TestAccEC2Instance_EBSBlockDevice_kmsKeyARN
=== RUN TestAccEC2Instance_EBSBlockDevice_invalidIopsForVolumeType
=== PAUSE TestAccEC2Instance_EBSBlockDevice_invalidIopsForVolumeType
=== RUN TestAccEC2Instance_EBSBlockDevice_invalidThroughputForVolumeType
=== PAUSE TestAccEC2Instance_EBSBlockDevice_invalidThroughputForVolumeType
=== RUN TestAccEC2Instance_RootBlockDevice_kmsKeyARN
=== PAUSE TestAccEC2Instance_RootBlockDevice_kmsKeyARN
=== RUN TestAccEC2Instance_userDataBase64
=== PAUSE TestAccEC2Instance_userDataBase64
=== RUN TestAccEC2Instance_gp2IopsDevice
=== PAUSE TestAccEC2Instance_gp2IopsDevice
=== RUN TestAccEC2Instance_gp2WithIopsValue
=== PAUSE TestAccEC2Instance_gp2WithIopsValue
=== RUN TestAccEC2Instance_blockDevices
=== PAUSE TestAccEC2Instance_blockDevices
=== RUN TestAccEC2Instance_rootInstanceStore
=== PAUSE TestAccEC2Instance_rootInstanceStore
=== RUN TestAccEC2Instance_noAMIEphemeralDevices
=== PAUSE TestAccEC2Instance_noAMIEphemeralDevices
=== RUN TestAccEC2Instance_sourceDestCheck
=== PAUSE TestAccEC2Instance_sourceDestCheck
=== RUN TestAccEC2Instance_disableAPITermination
=== PAUSE TestAccEC2Instance_disableAPITermination
=== RUN TestAccEC2Instance_dedicatedInstance
=== PAUSE TestAccEC2Instance_dedicatedInstance
=== RUN TestAccEC2Instance_outpost
=== PAUSE TestAccEC2Instance_outpost
=== RUN TestAccEC2Instance_placementGroup
=== PAUSE TestAccEC2Instance_placementGroup
=== RUN TestAccEC2Instance_placementPartitionNumber
=== PAUSE TestAccEC2Instance_placementPartitionNumber
=== RUN TestAccEC2Instance_IPv6_supportAddressCount
=== PAUSE TestAccEC2Instance_IPv6_supportAddressCount
=== RUN TestAccEC2Instance_ipv6AddressCountAndSingleAddressCausesError
=== PAUSE TestAccEC2Instance_ipv6AddressCountAndSingleAddressCausesError
=== RUN TestAccEC2Instance_IPv6_supportAddressCountWithIPv4
=== PAUSE TestAccEC2Instance_IPv6_supportAddressCountWithIPv4
=== RUN TestAccEC2Instance_networkInstanceSecurityGroups
=== PAUSE TestAccEC2Instance_networkInstanceSecurityGroups
=== RUN TestAccEC2Instance_networkInstanceRemovingAllSecurityGroups
=== PAUSE TestAccEC2Instance_networkInstanceRemovingAllSecurityGroups
=== RUN TestAccEC2Instance_networkInstanceVPCSecurityGroupIDs
=== PAUSE TestAccEC2Instance_networkInstanceVPCSecurityGroupIDs
=== RUN TestAccEC2Instance_tags
=== PAUSE TestAccEC2Instance_tags
=== RUN TestAccEC2Instance_BlockDeviceTags_volumeTags
=== PAUSE TestAccEC2Instance_BlockDeviceTags_volumeTags
=== RUN TestAccEC2Instance_BlockDeviceTags_withAttachedVolume
=== PAUSE TestAccEC2Instance_BlockDeviceTags_withAttachedVolume
=== RUN TestAccEC2Instance_BlockDeviceTags_ebsAndRoot
=== PAUSE TestAccEC2Instance_BlockDeviceTags_ebsAndRoot
=== RUN TestAccEC2Instance_instanceProfileChange
=== PAUSE TestAccEC2Instance_instanceProfileChange
=== RUN TestAccEC2Instance_withIAMInstanceProfile
=== PAUSE TestAccEC2Instance_withIAMInstanceProfile
=== RUN TestAccEC2Instance_withIAMInstanceProfilePath
=== PAUSE TestAccEC2Instance_withIAMInstanceProfilePath
=== RUN TestAccEC2Instance_privateIP
=== PAUSE TestAccEC2Instance_privateIP
=== RUN TestAccEC2Instance_associatePublicIPAndPrivateIP
=== PAUSE TestAccEC2Instance_associatePublicIPAndPrivateIP
=== RUN TestAccEC2Instance_Empty_privateIP
=== PAUSE TestAccEC2Instance_Empty_privateIP
=== RUN TestAccEC2Instance_keyPairCheck
=== PAUSE TestAccEC2Instance_keyPairCheck
=== RUN TestAccEC2Instance_rootBlockDeviceMismatch
=== PAUSE TestAccEC2Instance_rootBlockDeviceMismatch
=== RUN TestAccEC2Instance_forceNewAndTagsDrift
=== PAUSE TestAccEC2Instance_forceNewAndTagsDrift
=== RUN TestAccEC2Instance_changeInstanceType
=== PAUSE TestAccEC2Instance_changeInstanceType
=== RUN TestAccEC2Instance_EBSRootDevice_basic
=== PAUSE TestAccEC2Instance_EBSRootDevice_basic
=== RUN TestAccEC2Instance_EBSRootDevice_modifySize
=== PAUSE TestAccEC2Instance_EBSRootDevice_modifySize
=== RUN TestAccEC2Instance_EBSRootDevice_modifyType
=== PAUSE TestAccEC2Instance_EBSRootDevice_modifyType
=== RUN TestAccEC2Instance_EBSRootDeviceModifyIOPS_io1
=== PAUSE TestAccEC2Instance_EBSRootDeviceModifyIOPS_io1
=== RUN TestAccEC2Instance_EBSRootDeviceModifyIOPS_io2
=== PAUSE TestAccEC2Instance_EBSRootDeviceModifyIOPS_io2
=== RUN TestAccEC2Instance_EBSRootDeviceModifyThroughput_gp3
=== PAUSE TestAccEC2Instance_EBSRootDeviceModifyThroughput_gp3
=== RUN TestAccEC2Instance_EBSRootDevice_modifyDeleteOnTermination
=== PAUSE TestAccEC2Instance_EBSRootDevice_modifyDeleteOnTermination
=== RUN TestAccEC2Instance_EBSRootDevice_modifyAll
=== PAUSE TestAccEC2Instance_EBSRootDevice_modifyAll
=== RUN TestAccEC2Instance_EBSRootDeviceMultipleBlockDevices_modifySize
=== PAUSE TestAccEC2Instance_EBSRootDeviceMultipleBlockDevices_modifySize
=== RUN TestAccEC2Instance_EBSRootDeviceMultipleBlockDevices_modifyDeleteOnTermination
=== PAUSE TestAccEC2Instance_EBSRootDeviceMultipleBlockDevices_modifyDeleteOnTermination
=== RUN TestAccEC2Instance_EBSRootDevice_multipleDynamicEBSBlockDevices
=== PAUSE TestAccEC2Instance_EBSRootDevice_multipleDynamicEBSBlockDevices
=== RUN TestAccEC2Instance_primaryNetworkInterface
=== PAUSE TestAccEC2Instance_primaryNetworkInterface
=== RUN TestAccEC2Instance_primaryNetworkInterfaceSourceDestCheck
=== PAUSE TestAccEC2Instance_primaryNetworkInterfaceSourceDestCheck
=== RUN TestAccEC2Instance_addSecondaryInterface
=== PAUSE TestAccEC2Instance_addSecondaryInterface
=== RUN TestAccEC2Instance_addSecurityGroupNetworkInterface
=== PAUSE TestAccEC2Instance_addSecurityGroupNetworkInterface
=== RUN TestAccEC2Instance_NewNetworkInterface_publicIPAndSecondaryPrivateIPs
=== PAUSE TestAccEC2Instance_NewNetworkInterface_publicIPAndSecondaryPrivateIPs
=== RUN TestAccEC2Instance_NewNetworkInterface_emptyPrivateIPAndSecondaryPrivateIPs
=== PAUSE TestAccEC2Instance_NewNetworkInterface_emptyPrivateIPAndSecondaryPrivateIPs
=== RUN TestAccEC2Instance_NewNetworkInterface_emptyPrivateIPAndSecondaryPrivateIPsUpdate
=== PAUSE TestAccEC2Instance_NewNetworkInterface_emptyPrivateIPAndSecondaryPrivateIPsUpdate
=== RUN TestAccEC2Instance_NewNetworkInterface_privateIPAndSecondaryPrivateIPs
=== PAUSE TestAccEC2Instance_NewNetworkInterface_privateIPAndSecondaryPrivateIPs
=== RUN TestAccEC2Instance_NewNetworkInterface_privateIPAndSecondaryPrivateIPsUpdate
=== PAUSE TestAccEC2Instance_NewNetworkInterface_privateIPAndSecondaryPrivateIPsUpdate
=== RUN TestAccEC2Instance_AssociatePublic_defaultPrivate
=== PAUSE TestAccEC2Instance_AssociatePublic_defaultPrivate
=== RUN TestAccEC2Instance_AssociatePublic_defaultPublic
=== PAUSE TestAccEC2Instance_AssociatePublic_defaultPublic
=== RUN TestAccEC2Instance_AssociatePublic_explicitPublic
=== PAUSE TestAccEC2Instance_AssociatePublic_explicitPublic
=== RUN TestAccEC2Instance_AssociatePublic_explicitPrivate
=== PAUSE TestAccEC2Instance_AssociatePublic_explicitPrivate
=== RUN TestAccEC2Instance_AssociatePublic_overridePublic
=== PAUSE TestAccEC2Instance_AssociatePublic_overridePublic
=== RUN TestAccEC2Instance_AssociatePublic_overridePrivate
=== PAUSE TestAccEC2Instance_AssociatePublic_overridePrivate
=== RUN TestAccEC2Instance_LaunchTemplate_basic
=== PAUSE TestAccEC2Instance_LaunchTemplate_basic
=== RUN TestAccEC2Instance_LaunchTemplate_overrideTemplate
=== PAUSE TestAccEC2Instance_LaunchTemplate_overrideTemplate
=== RUN TestAccEC2Instance_LaunchTemplate_setSpecificVersion
=== PAUSE TestAccEC2Instance_LaunchTemplate_setSpecificVersion
=== RUN TestAccEC2Instance_LaunchTemplateModifyTemplate_defaultVersion
=== PAUSE TestAccEC2Instance_LaunchTemplateModifyTemplate_defaultVersion
=== RUN TestAccEC2Instance_LaunchTemplate_updateTemplateVersion
=== PAUSE TestAccEC2Instance_LaunchTemplate_updateTemplateVersion
=== RUN TestAccEC2Instance_LaunchTemplate_swapIDAndName
=== PAUSE TestAccEC2Instance_LaunchTemplate_swapIDAndName
=== RUN TestAccEC2Instance_GetPasswordData_falseToTrue
=== PAUSE TestAccEC2Instance_GetPasswordData_falseToTrue
=== RUN TestAccEC2Instance_GetPasswordData_trueToFalse
=== PAUSE TestAccEC2Instance_GetPasswordData_trueToFalse
=== RUN TestAccEC2Instance_CreditSpecificationEmpty_nonBurstable
=== PAUSE TestAccEC2Instance_CreditSpecificationEmpty_nonBurstable
=== RUN TestAccEC2Instance_CreditSpecificationUnspecifiedToEmpty_nonBurstable
=== PAUSE TestAccEC2Instance_CreditSpecificationUnspecifiedToEmpty_nonBurstable
=== RUN TestAccEC2Instance_CreditSpecification_unspecifiedDefaultsToStandard
=== PAUSE TestAccEC2Instance_CreditSpecification_unspecifiedDefaultsToStandard
=== RUN TestAccEC2Instance_CreditSpecification_standardCPUCredits
=== PAUSE TestAccEC2Instance_CreditSpecification_standardCPUCredits
=== RUN TestAccEC2Instance_CreditSpecification_unlimitedCPUCredits
=== PAUSE TestAccEC2Instance_CreditSpecification_unlimitedCPUCredits
=== RUN TestAccEC2Instance_CreditSpecificationUnknownCPUCredits_t2
=== PAUSE TestAccEC2Instance_CreditSpecificationUnknownCPUCredits_t2
=== RUN TestAccEC2Instance_CreditSpecificationUnknownCPUCredits_t3
=== PAUSE TestAccEC2Instance_CreditSpecificationUnknownCPUCredits_t3
=== RUN TestAccEC2Instance_CreditSpecification_updateCPUCredits
=== PAUSE TestAccEC2Instance_CreditSpecification_updateCPUCredits
=== RUN TestAccEC2Instance_CreditSpecification_isNotAppliedToNonBurstable
=== PAUSE TestAccEC2Instance_CreditSpecification_isNotAppliedToNonBurstable
=== RUN TestAccEC2Instance_CreditSpecificationT3_unspecifiedDefaultsToUnlimited
=== PAUSE TestAccEC2Instance_CreditSpecificationT3_unspecifiedDefaultsToUnlimited
=== RUN TestAccEC2Instance_CreditSpecificationT3_standardCPUCredits
=== PAUSE TestAccEC2Instance_CreditSpecificationT3_standardCPUCredits
=== RUN TestAccEC2Instance_CreditSpecificationT3_unlimitedCPUCredits
=== PAUSE TestAccEC2Instance_CreditSpecificationT3_unlimitedCPUCredits
=== RUN TestAccEC2Instance_CreditSpecificationT3_updateCPUCredits
=== PAUSE TestAccEC2Instance_CreditSpecificationT3_updateCPUCredits
=== RUN TestAccEC2Instance_CreditSpecificationStandardCPUCredits_t2Tot3Taint
=== PAUSE TestAccEC2Instance_CreditSpecificationStandardCPUCredits_t2Tot3Taint
=== RUN TestAccEC2Instance_CreditSpecificationUnlimitedCPUCredits_t2Tot3Taint
=== PAUSE TestAccEC2Instance_CreditSpecificationUnlimitedCPUCredits_t2Tot3Taint
=== RUN TestAccEC2Instance_disappears
=== PAUSE TestAccEC2Instance_disappears
=== RUN TestAccEC2Instance_UserData_emptyStringToUnspecified
=== PAUSE TestAccEC2Instance_UserData_emptyStringToUnspecified
=== RUN TestAccEC2Instance_UserData_unspecifiedToEmptyString
=== PAUSE TestAccEC2Instance_UserData_unspecifiedToEmptyString
=== RUN TestAccEC2Instance_hibernation
=== PAUSE TestAccEC2Instance_hibernation
=== RUN TestAccEC2Instance_metadataOptions
=== PAUSE TestAccEC2Instance_metadataOptions
=== RUN TestAccEC2Instance_enclaveOptions
=== PAUSE TestAccEC2Instance_enclaveOptions
=== RUN TestAccEC2Instance_CapacityReservation_unspecifiedDefaultsToOpen
=== PAUSE TestAccEC2Instance_CapacityReservation_unspecifiedDefaultsToOpen
=== RUN TestAccEC2Instance_CapacityReservationPreference_open
=== PAUSE TestAccEC2Instance_CapacityReservationPreference_open
=== RUN TestAccEC2Instance_CapacityReservationPreference_none
=== PAUSE TestAccEC2Instance_CapacityReservationPreference_none
=== RUN TestAccEC2Instance_CapacityReservation_targetID
=== PAUSE TestAccEC2Instance_CapacityReservation_targetID
=== RUN TestAccEC2Instance_CapacityReservation_modifyPreference
=== PAUSE TestAccEC2Instance_CapacityReservation_modifyPreference
=== RUN TestAccEC2Instance_CapacityReservation_modifyTarget
=== PAUSE TestAccEC2Instance_CapacityReservation_modifyTarget
=== RUN TestAccEC2Instance_gp3RootBlockDevice
=== PAUSE TestAccEC2Instance_gp3RootBlockDevice
=== RUN TestAccEC2LaunchTemplateDataSource_basic
=== PAUSE TestAccEC2LaunchTemplateDataSource_basic
=== RUN TestAccEC2LaunchTemplateDataSource_ID_basic
=== PAUSE TestAccEC2LaunchTemplateDataSource_ID_basic
=== RUN TestAccEC2LaunchTemplateDataSource_Filter_basic
=== PAUSE TestAccEC2LaunchTemplateDataSource_Filter_basic
=== RUN TestAccEC2LaunchTemplateDataSource_Filter_tags
=== PAUSE TestAccEC2LaunchTemplateDataSource_Filter_tags
=== RUN TestAccEC2LaunchTemplateDataSource_metadataOptions
=== PAUSE TestAccEC2LaunchTemplateDataSource_metadataOptions
=== RUN TestAccEC2LaunchTemplateDataSource_enclaveOptions
=== PAUSE TestAccEC2LaunchTemplateDataSource_enclaveOptions
=== RUN TestAccEC2LaunchTemplateDataSource_associatePublicIPAddress
=== PAUSE TestAccEC2LaunchTemplateDataSource_associatePublicIPAddress
=== RUN TestAccEC2LaunchTemplateDataSource_associateCarrierIPAddress
=== PAUSE TestAccEC2LaunchTemplateDataSource_associateCarrierIPAddress
=== RUN TestAccEC2LaunchTemplateDataSource_NetworkInterfaces_deleteOnTermination
=== PAUSE TestAccEC2LaunchTemplateDataSource_NetworkInterfaces_deleteOnTermination
=== RUN TestAccEC2LaunchTemplateDataSource_nonExistent
=== PAUSE TestAccEC2LaunchTemplateDataSource_nonExistent
=== RUN TestAccEC2LaunchTemplate_basic
=== PAUSE TestAccEC2LaunchTemplate_basic
=== RUN TestAccEC2LaunchTemplate_Name_generated
=== PAUSE TestAccEC2LaunchTemplate_Name_generated
=== RUN TestAccEC2LaunchTemplate_Name_prefix
=== PAUSE TestAccEC2LaunchTemplate_Name_prefix
=== RUN TestAccEC2LaunchTemplate_disappears
=== PAUSE TestAccEC2LaunchTemplate_disappears
=== RUN TestAccEC2LaunchTemplate_BlockDeviceMappings_ebs
=== PAUSE TestAccEC2LaunchTemplate_BlockDeviceMappings_ebs
=== RUN TestAccEC2LaunchTemplate_BlockDeviceMappingsEBS_deleteOnTermination
=== PAUSE TestAccEC2LaunchTemplate_BlockDeviceMappingsEBS_deleteOnTermination
=== RUN TestAccEC2LaunchTemplate_BlockDeviceMappingsEBS_gp3
=== PAUSE TestAccEC2LaunchTemplate_BlockDeviceMappingsEBS_gp3
=== RUN TestAccEC2LaunchTemplate_ebsOptimized
=== PAUSE TestAccEC2LaunchTemplate_ebsOptimized
=== RUN TestAccEC2LaunchTemplate_elasticInferenceAccelerator
=== PAUSE TestAccEC2LaunchTemplate_elasticInferenceAccelerator
=== RUN TestAccEC2LaunchTemplate_NetworkInterfaces_deleteOnTermination
=== PAUSE TestAccEC2LaunchTemplate_NetworkInterfaces_deleteOnTermination
=== RUN TestAccEC2LaunchTemplate_data
=== PAUSE TestAccEC2LaunchTemplate_data
=== RUN TestAccEC2LaunchTemplate_description
=== PAUSE TestAccEC2LaunchTemplate_description
=== RUN TestAccEC2LaunchTemplate_update
=== PAUSE TestAccEC2LaunchTemplate_update
=== RUN TestAccEC2LaunchTemplate_tags
=== PAUSE TestAccEC2LaunchTemplate_tags
=== RUN TestAccEC2LaunchTemplate_CapacityReservation_preference
=== PAUSE TestAccEC2LaunchTemplate_CapacityReservation_preference
=== RUN TestAccEC2LaunchTemplate_CapacityReservation_target
=== PAUSE TestAccEC2LaunchTemplate_CapacityReservation_target
=== RUN TestAccEC2LaunchTemplate_cpuOptions
=== PAUSE TestAccEC2LaunchTemplate_cpuOptions
=== RUN TestAccEC2LaunchTemplate_CreditSpecification_nonBurstable
=== PAUSE TestAccEC2LaunchTemplate_CreditSpecification_nonBurstable
=== RUN TestAccEC2LaunchTemplate_CreditSpecification_t2
=== PAUSE TestAccEC2LaunchTemplate_CreditSpecification_t2
=== RUN TestAccEC2LaunchTemplate_CreditSpecification_t3
=== PAUSE TestAccEC2LaunchTemplate_CreditSpecification_t3
=== RUN TestAccEC2LaunchTemplate_IAMInstanceProfile_emptyBlock
=== PAUSE TestAccEC2LaunchTemplate_IAMInstanceProfile_emptyBlock
=== RUN TestAccEC2LaunchTemplate_networkInterface
=== PAUSE TestAccEC2LaunchTemplate_networkInterface
=== RUN TestAccEC2LaunchTemplate_networkInterfaceAddresses
=== PAUSE TestAccEC2LaunchTemplate_networkInterfaceAddresses
=== RUN TestAccEC2LaunchTemplate_networkInterfaceType
=== PAUSE TestAccEC2LaunchTemplate_networkInterfaceType
=== RUN TestAccEC2LaunchTemplate_networkInterfaceCardIndex
=== PAUSE TestAccEC2LaunchTemplate_networkInterfaceCardIndex
=== RUN TestAccEC2LaunchTemplate_associatePublicIPAddress
=== PAUSE TestAccEC2LaunchTemplate_associatePublicIPAddress
=== RUN TestAccEC2LaunchTemplate_associateCarrierIPAddress
=== PAUSE TestAccEC2LaunchTemplate_associateCarrierIPAddress
=== RUN TestAccEC2LaunchTemplate_Placement_hostResourceGroupARN
=== PAUSE TestAccEC2LaunchTemplate_Placement_hostResourceGroupARN
=== RUN TestAccEC2LaunchTemplate_Placement_partitionNum
=== PAUSE TestAccEC2LaunchTemplate_Placement_partitionNum
=== RUN TestAccEC2LaunchTemplate_NetworkInterface_ipv6Addresses
=== PAUSE TestAccEC2LaunchTemplate_NetworkInterface_ipv6Addresses
=== RUN TestAccEC2LaunchTemplate_NetworkInterface_ipv6AddressCount
=== PAUSE TestAccEC2LaunchTemplate_NetworkInterface_ipv6AddressCount
=== RUN TestAccEC2LaunchTemplate_instanceMarketOptions
=== PAUSE TestAccEC2LaunchTemplate_instanceMarketOptions
=== RUN TestAccEC2LaunchTemplate_metadataOptions
=== PAUSE TestAccEC2LaunchTemplate_metadataOptions
=== RUN TestAccEC2LaunchTemplate_enclaveOptions
=== PAUSE TestAccEC2LaunchTemplate_enclaveOptions
=== RUN TestAccEC2LaunchTemplate_hibernation
=== PAUSE TestAccEC2LaunchTemplate_hibernation
=== RUN TestAccEC2LaunchTemplate_defaultVersion
=== PAUSE TestAccEC2LaunchTemplate_defaultVersion
=== RUN TestAccEC2LaunchTemplate_updateDefaultVersion
=== PAUSE TestAccEC2LaunchTemplate_updateDefaultVersion
=== CONT TestAccEC2InstanceDataSource_basic
=== CONT TestAccEC2Instance_AssociatePublic_explicitPrivate
=== CONT TestAccEC2LaunchTemplate_updateDefaultVersion
=== CONT TestAccEC2LaunchTemplate_defaultVersion
--- PASS: TestAccEC2LaunchTemplate_defaultVersion (47.49s)
=== CONT TestAccEC2LaunchTemplate_hibernation
--- PASS: TestAccEC2LaunchTemplate_updateDefaultVersion (62.63s)
=== CONT TestAccEC2LaunchTemplate_enclaveOptions
--- PASS: TestAccEC2LaunchTemplate_hibernation (47.70s)
=== CONT TestAccEC2LaunchTemplate_metadataOptions
--- PASS: TestAccEC2LaunchTemplate_enclaveOptions (45.75s)
=== CONT TestAccEC2LaunchTemplate_instanceMarketOptions
--- PASS: TestAccEC2InstanceDataSource_basic (121.15s)
=== CONT TestAccEC2LaunchTemplate_NetworkInterface_ipv6AddressCount
--- PASS: TestAccEC2LaunchTemplate_NetworkInterface_ipv6AddressCount (18.19s)
=== CONT TestAccEC2LaunchTemplate_NetworkInterface_ipv6Addresses
--- PASS: TestAccEC2LaunchTemplate_metadataOptions (47.60s)
=== CONT TestAccEC2LaunchTemplate_Placement_partitionNum
--- PASS: TestAccEC2Instance_AssociatePublic_explicitPrivate (156.29s)
=== CONT TestAccEC2LaunchTemplate_Placement_hostResourceGroupARN
--- PASS: TestAccEC2LaunchTemplate_NetworkInterface_ipv6Addresses (19.89s)
=== CONT TestAccEC2LaunchTemplate_associateCarrierIPAddress
--- PASS: TestAccEC2LaunchTemplate_Placement_hostResourceGroupARN (24.57s)
=== CONT TestAccEC2LaunchTemplate_associatePublicIPAddress
--- PASS: TestAccEC2LaunchTemplate_Placement_partitionNum (38.51s)
=== CONT TestAccEC2LaunchTemplate_networkInterfaceCardIndex
--- PASS: TestAccEC2LaunchTemplate_networkInterfaceCardIndex (21.74s)
=== CONT TestAccEC2LaunchTemplate_networkInterfaceType
--- PASS: TestAccEC2LaunchTemplate_instanceMarketOptions (99.62s)
=== CONT TestAccEC2LaunchTemplate_networkInterfaceAddresses
--- PASS: TestAccEC2LaunchTemplate_networkInterfaceType (24.63s)
=== CONT TestAccEC2LaunchTemplate_networkInterface
--- PASS: TestAccEC2LaunchTemplate_associateCarrierIPAddress (92.45s)
=== CONT TestAccEC2LaunchTemplate_IAMInstanceProfile_emptyBlock
--- PASS: TestAccEC2LaunchTemplate_networkInterfaceAddresses (38.85s)
=== CONT TestAccEC2LaunchTemplate_CreditSpecification_t3
--- PASS: TestAccEC2LaunchTemplate_networkInterface (37.20s)
=== CONT TestAccEC2LaunchTemplate_CreditSpecification_t2
--- PASS: TestAccEC2LaunchTemplate_IAMInstanceProfile_emptyBlock (17.00s)
=== CONT TestAccEC2LaunchTemplate_CreditSpecification_nonBurstable
--- PASS: TestAccEC2LaunchTemplate_CreditSpecification_t3 (20.34s)
=== CONT TestAccEC2LaunchTemplate_cpuOptions
--- PASS: TestAccEC2LaunchTemplate_associatePublicIPAddress (94.60s)
=== CONT TestAccEC2LaunchTemplate_CapacityReservation_target
--- PASS: TestAccEC2LaunchTemplate_cpuOptions (16.45s)
=== CONT TestAccEC2LaunchTemplate_CapacityReservation_preference
--- PASS: TestAccEC2LaunchTemplate_CreditSpecification_t2 (24.49s)
=== CONT TestAccEC2LaunchTemplate_tags
--- PASS: TestAccEC2LaunchTemplate_CreditSpecification_nonBurstable (20.75s)
=== CONT TestAccEC2LaunchTemplate_update
--- PASS: TestAccEC2LaunchTemplate_CapacityReservation_target (25.73s)
=== CONT TestAccEC2LaunchTemplate_description
--- PASS: TestAccEC2LaunchTemplate_CapacityReservation_preference (21.34s)
=== CONT TestAccEC2LaunchTemplate_data
--- PASS: TestAccEC2LaunchTemplate_data (20.31s)
=== CONT TestAccEC2LaunchTemplate_NetworkInterfaces_deleteOnTermination
--- PASS: TestAccEC2LaunchTemplate_description (34.69s)
=== CONT TestAccEC2LaunchTemplate_elasticInferenceAccelerator
--- PASS: TestAccEC2LaunchTemplate_tags (49.15s)
=== CONT TestAccEC2LaunchTemplate_ebsOptimized
--- PASS: TestAccEC2LaunchTemplate_elasticInferenceAccelerator (40.45s)
=== CONT TestAccEC2LaunchTemplate_BlockDeviceMappingsEBS_gp3
--- PASS: TestAccEC2LaunchTemplate_NetworkInterfaces_deleteOnTermination (63.28s)
=== CONT TestAccEC2LaunchTemplate_BlockDeviceMappingsEBS_deleteOnTermination
--- PASS: TestAccEC2LaunchTemplate_update (110.63s)
=== CONT TestAccEC2LaunchTemplate_BlockDeviceMappings_ebs
--- PASS: TestAccEC2LaunchTemplate_ebsOptimized (80.64s)
=== CONT TestAccEC2LaunchTemplate_disappears
--- PASS: TestAccEC2LaunchTemplate_BlockDeviceMappingsEBS_gp3 (50.78s)
=== CONT TestAccEC2LaunchTemplate_Name_prefix
--- PASS: TestAccEC2LaunchTemplate_disappears (14.78s)
=== CONT TestAccEC2LaunchTemplate_Name_generated
--- PASS: TestAccEC2LaunchTemplate_Name_prefix (19.34s)
=== CONT TestAccEC2LaunchTemplate_basic
--- PASS: TestAccEC2LaunchTemplate_Name_generated (17.99s)
=== CONT TestAccEC2LaunchTemplateDataSource_nonExistent
--- PASS: TestAccEC2LaunchTemplate_BlockDeviceMappings_ebs (54.22s)
=== CONT TestAccEC2LaunchTemplateDataSource_NetworkInterfaces_deleteOnTermination
--- PASS: TestAccEC2LaunchTemplateDataSource_nonExistent (2.51s)
=== CONT TestAccEC2LaunchTemplateDataSource_associateCarrierIPAddress
--- PASS: TestAccEC2LaunchTemplate_basic (18.51s)
=== CONT TestAccEC2LaunchTemplateDataSource_associatePublicIPAddress
--- PASS: TestAccEC2LaunchTemplate_BlockDeviceMappingsEBS_deleteOnTermination (105.37s)
=== CONT TestAccEC2LaunchTemplateDataSource_enclaveOptions
--- PASS: TestAccEC2LaunchTemplateDataSource_NetworkInterfaces_deleteOnTermination (61.67s)
=== CONT TestAccEC2LaunchTemplateDataSource_metadataOptions
--- PASS: TestAccEC2LaunchTemplateDataSource_associateCarrierIPAddress (61.61s)
=== CONT TestAccEC2LaunchTemplateDataSource_Filter_tags
--- PASS: TestAccEC2LaunchTemplateDataSource_enclaveOptions (19.75s)
=== CONT TestAccEC2LaunchTemplateDataSource_Filter_basic
--- PASS: TestAccEC2LaunchTemplateDataSource_associatePublicIPAddress (59.58s)
=== CONT TestAccEC2LaunchTemplateDataSource_ID_basic
--- PASS: TestAccEC2LaunchTemplateDataSource_metadataOptions (19.23s)
=== CONT TestAccEC2LaunchTemplateDataSource_basic
--- PASS: TestAccEC2LaunchTemplateDataSource_Filter_tags (19.71s)
=== CONT TestAccEC2Instance_gp3RootBlockDevice
--- PASS: TestAccEC2LaunchTemplateDataSource_Filter_basic (19.82s)
=== CONT TestAccEC2Instance_CapacityReservation_modifyTarget
--- PASS: TestAccEC2LaunchTemplateDataSource_ID_basic (19.75s)
=== CONT TestAccEC2Instance_CapacityReservation_modifyPreference
--- PASS: TestAccEC2LaunchTemplateDataSource_basic (20.80s)
=== CONT TestAccEC2Instance_CapacityReservation_targetID
--- PASS: TestAccEC2Instance_gp3RootBlockDevice (115.25s)
=== CONT TestAccEC2Instance_CapacityReservationPreference_none
--- PASS: TestAccEC2Instance_CapacityReservation_targetID (104.70s)
=== CONT TestAccEC2Instance_CapacityReservationPreference_open
--- PASS: TestAccEC2Instance_CapacityReservation_modifyTarget (199.74s)
=== CONT TestAccEC2Instance_CapacityReservation_unspecifiedDefaultsToOpen
--- PASS: TestAccEC2Instance_CapacityReservation_modifyPreference (216.81s)
=== CONT TestAccEC2Instance_enclaveOptions
--- PASS: TestAccEC2Instance_CapacityReservationPreference_none (114.03s)
=== CONT TestAccEC2Instance_metadataOptions
--- PASS: TestAccEC2Instance_CapacityReservationPreference_open (116.12s)
=== CONT TestAccEC2Instance_hibernation
--- PASS: TestAccEC2Instance_CapacityReservation_unspecifiedDefaultsToOpen (169.40s)
=== CONT TestAccEC2Instance_UserData_unspecifiedToEmptyString
--- PASS: TestAccEC2Instance_metadataOptions (151.24s)
=== CONT TestAccEC2Instance_UserData_emptyStringToUnspecified
--- PASS: TestAccEC2Instance_enclaveOptions (224.60s)
=== CONT TestAccEC2Instance_disappears
--- PASS: TestAccEC2Instance_hibernation (242.12s)
=== CONT TestAccEC2Instance_CreditSpecificationUnlimitedCPUCredits_t2Tot3Taint
--- PASS: TestAccEC2Instance_UserData_unspecifiedToEmptyString (159.48s)
=== CONT TestAccEC2Instance_CreditSpecificationStandardCPUCredits_t2Tot3Taint
--- PASS: TestAccEC2Instance_UserData_emptyStringToUnspecified (160.37s)
=== CONT TestAccEC2Instance_CreditSpecificationT3_updateCPUCredits
--- PASS: TestAccEC2Instance_CreditSpecificationUnlimitedCPUCredits_t2Tot3Taint (218.07s)
=== CONT TestAccEC2Instance_CreditSpecificationT3_unlimitedCPUCredits
--- PASS: TestAccEC2Instance_CreditSpecificationT3_updateCPUCredits (176.70s)
=== CONT TestAccEC2Instance_CreditSpecificationT3_standardCPUCredits
--- PASS: TestAccEC2Instance_disappears (308.22s)
=== CONT TestAccEC2Instance_CreditSpecificationT3_unspecifiedDefaultsToUnlimited
--- PASS: TestAccEC2Instance_CreditSpecificationStandardCPUCredits_t2Tot3Taint (228.03s)
=== CONT TestAccEC2Instance_CreditSpecification_isNotAppliedToNonBurstable
--- PASS: TestAccEC2Instance_CreditSpecificationT3_unlimitedCPUCredits (132.90s)
=== CONT TestAccEC2Instance_CreditSpecification_updateCPUCredits
--- PASS: TestAccEC2Instance_CreditSpecificationT3_standardCPUCredits (160.07s)
=== CONT TestAccEC2Instance_CreditSpecificationUnknownCPUCredits_t3
--- PASS: TestAccEC2Instance_CreditSpecificationT3_unspecifiedDefaultsToUnlimited (123.87s)
=== CONT TestAccEC2Instance_CreditSpecificationUnknownCPUCredits_t2
--- PASS: TestAccEC2Instance_CreditSpecification_isNotAppliedToNonBurstable (128.68s)
=== CONT TestAccEC2Instance_CreditSpecification_unlimitedCPUCredits
--- PASS: TestAccEC2Instance_CreditSpecificationUnknownCPUCredits_t3 (128.16s)
=== CONT TestAccEC2Instance_CreditSpecification_standardCPUCredits
--- PASS: TestAccEC2Instance_CreditSpecification_unlimitedCPUCredits (143.67s)
=== CONT TestAccEC2Instance_CreditSpecification_unspecifiedDefaultsToStandard
--- PASS: TestAccEC2Instance_CreditSpecification_updateCPUCredits (216.28s)
=== CONT TestAccEC2Instance_CreditSpecificationUnspecifiedToEmpty_nonBurstable
--- PASS: TestAccEC2Instance_CreditSpecificationUnknownCPUCredits_t2 (169.57s)
=== CONT TestAccEC2Instance_CreditSpecificationEmpty_nonBurstable
--- PASS: TestAccEC2Instance_CreditSpecification_unspecifiedDefaultsToStandard (129.20s)
=== CONT TestAccEC2Instance_GetPasswordData_trueToFalse
--- PASS: TestAccEC2Instance_CreditSpecificationEmpty_nonBurstable (127.80s)
=== CONT TestAccEC2Instance_GetPasswordData_falseToTrue
--- PASS: TestAccEC2Instance_CreditSpecificationUnspecifiedToEmpty_nonBurstable (187.86s)
=== CONT TestAccEC2Instance_LaunchTemplate_swapIDAndName
--- PASS: TestAccEC2Instance_CreditSpecification_standardCPUCredits (274.48s)
=== CONT TestAccEC2Instance_LaunchTemplate_updateTemplateVersion
--- PASS: TestAccEC2Instance_GetPasswordData_falseToTrue (165.00s)
=== CONT TestAccEC2Instance_LaunchTemplateModifyTemplate_defaultVersion
--- PASS: TestAccEC2Instance_GetPasswordData_trueToFalse (220.31s)
=== CONT TestAccEC2Instance_LaunchTemplate_setSpecificVersion
--- PASS: TestAccEC2Instance_LaunchTemplate_swapIDAndName (181.15s)
=== CONT TestAccEC2Instance_LaunchTemplate_overrideTemplate
--- PASS: TestAccEC2Instance_LaunchTemplate_updateTemplateVersion (205.97s)
=== CONT TestAccEC2Instance_LaunchTemplate_basic
--- PASS: TestAccEC2Instance_LaunchTemplate_overrideTemplate (87.02s)
=== CONT TestAccEC2Instance_AssociatePublic_overridePrivate
--- PASS: TestAccEC2Instance_LaunchTemplateModifyTemplate_defaultVersion (182.16s)
=== CONT TestAccEC2Instance_AssociatePublic_overridePublic
--- PASS: TestAccEC2Instance_LaunchTemplate_setSpecificVersion (169.64s)
=== CONT TestAccEC2Instance_placementPartitionNumber
--- PASS: TestAccEC2Instance_LaunchTemplate_basic (120.23s)
=== CONT TestAccEC2Instance_AssociatePublic_explicitPublic
--- PASS: TestAccEC2Instance_AssociatePublic_overridePublic (127.27s)
=== CONT TestAccEC2Instance_AssociatePublic_defaultPublic
--- PASS: TestAccEC2Instance_AssociatePublic_overridePrivate (162.59s)
=== CONT TestAccEC2Instance_AssociatePublic_defaultPrivate
--- PASS: TestAccEC2Instance_placementPartitionNumber (126.73s)
=== CONT TestAccEC2Instance_NewNetworkInterface_privateIPAndSecondaryPrivateIPsUpdate
--- PASS: TestAccEC2Instance_AssociatePublic_explicitPublic (128.14s)
=== CONT TestAccEC2Instance_NewNetworkInterface_privateIPAndSecondaryPrivateIPs
--- PASS: TestAccEC2Instance_AssociatePublic_defaultPrivate (129.31s)
=== CONT TestAccEC2Instance_NewNetworkInterface_emptyPrivateIPAndSecondaryPrivateIPsUpdate
--- PASS: TestAccEC2Instance_NewNetworkInterface_privateIPAndSecondaryPrivateIPs (128.42s)
=== CONT TestAccEC2Instance_NewNetworkInterface_emptyPrivateIPAndSecondaryPrivateIPs
--- PASS: TestAccEC2Instance_NewNetworkInterface_privateIPAndSecondaryPrivateIPsUpdate (239.42s)
=== CONT TestAccEC2Instance_NewNetworkInterface_publicIPAndSecondaryPrivateIPs
--- PASS: TestAccEC2Instance_AssociatePublic_defaultPublic (263.88s)
=== CONT TestAccEC2Instance_addSecurityGroupNetworkInterface
--- PASS: TestAccEC2Instance_NewNetworkInterface_emptyPrivateIPAndSecondaryPrivateIPs (98.19s)
=== CONT TestAccEC2Instance_addSecondaryInterface
--- PASS: TestAccEC2Instance_NewNetworkInterface_emptyPrivateIPAndSecondaryPrivateIPsUpdate (207.59s)
=== CONT TestAccEC2Instance_primaryNetworkInterfaceSourceDestCheck
--- PASS: TestAccEC2Instance_NewNetworkInterface_publicIPAndSecondaryPrivateIPs (197.55s)
=== CONT TestAccEC2Instance_primaryNetworkInterface
--- PASS: TestAccEC2Instance_primaryNetworkInterfaceSourceDestCheck (147.48s)
=== CONT TestAccEC2Instance_EBSRootDevice_multipleDynamicEBSBlockDevices
--- PASS: TestAccEC2Instance_primaryNetworkInterface (132.75s)
=== CONT TestAccEC2Instance_EBSRootDeviceMultipleBlockDevices_modifyDeleteOnTermination
--- PASS: TestAccEC2Instance_addSecurityGroupNetworkInterface (437.44s)
=== CONT TestAccEC2Instance_EBSRootDeviceMultipleBlockDevices_modifySize
--- PASS: TestAccEC2Instance_EBSRootDevice_multipleDynamicEBSBlockDevices (230.72s)
=== CONT TestAccEC2Instance_EBSRootDevice_modifyAll
--- PASS: TestAccEC2Instance_addSecondaryInterface (426.53s)
=== CONT TestAccEC2Instance_EBSRootDevice_modifyDeleteOnTermination
--- PASS: TestAccEC2Instance_EBSRootDeviceMultipleBlockDevices_modifyDeleteOnTermination (187.00s)
=== CONT TestAccEC2Instance_EBSRootDeviceModifyThroughput_gp3
--- PASS: TestAccEC2Instance_EBSRootDevice_modifyDeleteOnTermination (154.83s)
=== CONT TestAccEC2Instance_EBSRootDeviceModifyIOPS_io2
--- PASS: TestAccEC2Instance_EBSRootDeviceMultipleBlockDevices_modifySize (198.84s)
=== CONT TestAccEC2Instance_EBSRootDeviceModifyIOPS_io1
--- PASS: TestAccEC2Instance_EBSRootDevice_modifyAll (214.69s)
=== CONT TestAccEC2Instance_EBSRootDevice_modifyType
--- PASS: TestAccEC2Instance_EBSRootDeviceModifyThroughput_gp3 (212.99s)
=== CONT TestAccEC2Instance_EBSRootDevice_modifySize
--- PASS: TestAccEC2Instance_EBSRootDeviceModifyIOPS_io1 (164.97s)
=== CONT TestAccEC2Instance_EBSRootDevice_basic
--- PASS: TestAccEC2Instance_EBSRootDeviceModifyIOPS_io2 (193.43s)
=== CONT TestAccEC2Instance_changeInstanceType
--- PASS: TestAccEC2Instance_EBSRootDevice_modifyType (185.89s)
=== CONT TestAccEC2Instance_forceNewAndTagsDrift
--- PASS: TestAccEC2Instance_EBSRootDevice_basic (114.71s)
=== CONT TestAccEC2Instance_rootBlockDeviceMismatch
--- PASS: TestAccEC2Instance_EBSRootDevice_modifySize (193.08s)
=== CONT TestAccEC2Instance_keyPairCheck
--- PASS: TestAccEC2Instance_keyPairCheck (108.11s)
=== CONT TestAccEC2Instance_Empty_privateIP
--- PASS: TestAccEC2Instance_changeInstanceType (229.38s)
=== CONT TestAccEC2Instance_associatePublicIPAndPrivateIP
--- PASS: TestAccEC2Instance_forceNewAndTagsDrift (253.65s)
=== CONT TestAccEC2Instance_privateIP
--- PASS: TestAccEC2Instance_Empty_privateIP (122.35s)
=== CONT TestAccEC2Instance_withIAMInstanceProfilePath
--- PASS: TestAccEC2Instance_rootBlockDeviceMismatch (238.72s)
=== CONT TestAccEC2Instance_withIAMInstanceProfile
--- PASS: TestAccEC2Instance_associatePublicIPAndPrivateIP (132.03s)
=== CONT TestAccEC2Instance_instanceProfileChange
--- PASS: TestAccEC2Instance_privateIP (130.33s)
=== CONT TestAccEC2Instance_BlockDeviceTags_ebsAndRoot
--- PASS: TestAccEC2Instance_withIAMInstanceProfilePath (152.62s)
=== CONT TestAccEC2Instance_BlockDeviceTags_withAttachedVolume
--- PASS: TestAccEC2Instance_withIAMInstanceProfile (151.59s)
=== CONT TestAccEC2Instance_BlockDeviceTags_volumeTags
--- PASS: TestAccEC2Instance_BlockDeviceTags_ebsAndRoot (190.18s)
=== CONT TestAccEC2Instance_tags
--- PASS: TestAccEC2Instance_BlockDeviceTags_withAttachedVolume (239.92s)
=== CONT TestAccEC2Instance_networkInstanceVPCSecurityGroupIDs
--- PASS: TestAccEC2Instance_instanceProfileChange (370.69s)
=== CONT TestAccEC2Instance_networkInstanceRemovingAllSecurityGroups
--- PASS: TestAccEC2Instance_BlockDeviceTags_volumeTags (282.27s)
=== CONT TestAccEC2Instance_networkInstanceSecurityGroups
--- PASS: TestAccEC2Instance_tags (161.85s)
=== CONT TestAccEC2Instance_IPv6_supportAddressCountWithIPv4
--- PASS: TestAccEC2Instance_networkInstanceVPCSecurityGroupIDs (135.12s)
=== CONT TestAccEC2Instance_ipv6AddressCountAndSingleAddressCausesError
--- PASS: TestAccEC2Instance_ipv6AddressCountAndSingleAddressCausesError (27.68s)
=== CONT TestAccEC2Instance_IPv6_supportAddressCount
--- PASS: TestAccEC2Instance_networkInstanceRemovingAllSecurityGroups (161.02s)
=== CONT TestAccEC2InstanceDataSource_enclaveOptions
--- PASS: TestAccEC2Instance_networkInstanceSecurityGroups (173.38s)
=== CONT TestAccEC2Instance_placementGroup
--- PASS: TestAccEC2Instance_IPv6_supportAddressCountWithIPv4 (166.72s)
=== CONT TestAccEC2Instance_outpost
acctest.go:1254: skipping since no Outposts found
--- SKIP: TestAccEC2Instance_outpost (0.64s)
=== CONT TestAccEC2Instance_dedicatedInstance
--- PASS: TestAccEC2InstanceDataSource_enclaveOptions (97.53s)
=== CONT TestAccEC2Instance_disableAPITermination
--- PASS: TestAccEC2Instance_IPv6_supportAddressCount (145.22s)
=== CONT TestAccEC2Instance_sourceDestCheck
--- PASS: TestAccEC2Instance_dedicatedInstance (132.62s)
=== CONT TestAccEC2Instance_noAMIEphemeralDevices
--- PASS: TestAccEC2Instance_placementGroup (144.99s)
=== CONT TestAccEC2Instance_rootInstanceStore
--- PASS: TestAccEC2Instance_rootInstanceStore (122.88s)
=== CONT TestAccEC2Instance_blockDevices
--- PASS: TestAccEC2Instance_noAMIEphemeralDevices (129.20s)
=== CONT TestAccEC2Instance_gp2WithIopsValue
--- PASS: TestAccEC2Instance_gp2WithIopsValue (13.97s)
=== CONT TestAccEC2Instance_gp2IopsDevice
--- PASS: TestAccEC2Instance_disableAPITermination (238.15s)
=== CONT TestAccEC2Instance_userDataBase64
--- PASS: TestAccEC2Instance_sourceDestCheck (217.14s)
=== CONT TestAccEC2Instance_RootBlockDevice_kmsKeyARN
--- PASS: TestAccEC2Instance_blockDevices (105.74s)
=== CONT TestAccEC2Instance_EBSBlockDevice_invalidThroughputForVolumeType
--- PASS: TestAccEC2Instance_gp2IopsDevice (102.58s)
=== CONT TestAccEC2Instance_EBSBlockDevice_invalidIopsForVolumeType
--- PASS: TestAccEC2Instance_EBSBlockDevice_invalidThroughputForVolumeType (13.60s)
=== CONT TestAccEC2Instance_EBSBlockDevice_kmsKeyARN
--- PASS: TestAccEC2Instance_EBSBlockDevice_invalidIopsForVolumeType (14.70s)
=== CONT TestAccEC2Instance_atLeastOneOtherEBSVolume
--- PASS: TestAccEC2Instance_RootBlockDevice_kmsKeyARN (141.55s)
=== CONT TestAccEC2Instance_basic
--- PASS: TestAccEC2Instance_userDataBase64 (170.05s)
=== CONT TestAccEC2Instance_inEC2Classic
--- PASS: TestAccEC2Instance_EBSBlockDevice_kmsKeyARN (98.13s)
=== CONT TestAccEC2Instance_inDefaultVPCBySgID
--- PASS: TestAccEC2Instance_inEC2Classic (104.77s)
=== CONT TestAccEC2Instance_inDefaultVPCBySgName
--- PASS: TestAccEC2Instance_basic (114.27s)
=== CONT TestAccEC2InstanceDataSource_blockDeviceTags
--- PASS: TestAccEC2Instance_atLeastOneOtherEBSVolume (203.27s)
=== CONT TestAccEC2InstanceDataSource_keyPair
--- PASS: TestAccEC2Instance_inDefaultVPCBySgID (130.28s)
=== CONT TestAccEC2InstanceDataSource_metadataOptions
--- PASS: TestAccEC2InstanceDataSource_blockDeviceTags (119.34s)
=== CONT TestAccEC2InstanceDataSource_creditSpecification
--- PASS: TestAccEC2Instance_inDefaultVPCBySgName (145.41s)
=== CONT TestAccEC2InstanceDataSource_GetUserData_noUserData
--- PASS: TestAccEC2InstanceDataSource_keyPair (123.94s)
=== CONT TestAccEC2InstanceDataSource_getUserData
--- PASS: TestAccEC2InstanceDataSource_metadataOptions (134.16s)
=== CONT TestAccEC2InstanceDataSource_GetPasswordData_falseToTrue
--- PASS: TestAccEC2InstanceDataSource_creditSpecification (152.55s)
=== CONT TestAccEC2InstanceDataSource_GetPasswordData_trueToFalse
--- PASS: TestAccEC2InstanceDataSource_GetUserData_noUserData (216.08s)
=== CONT TestAccEC2InstanceDataSource_vpcSecurityGroups
--- PASS: TestAccEC2InstanceDataSource_GetPasswordData_falseToTrue (206.18s)
=== CONT TestAccEC2InstanceDataSource_securityGroups
--- PASS: TestAccEC2InstanceDataSource_getUserData (267.98s)
=== CONT TestAccEC2InstanceDataSource_placementGroup
--- PASS: TestAccEC2InstanceDataSource_GetPasswordData_trueToFalse (219.58s)
=== CONT TestAccEC2InstanceDataSource_vpc
--- PASS: TestAccEC2InstanceDataSource_vpcSecurityGroups (174.13s)
=== CONT TestAccEC2InstanceDataSource_EBSBlockDevice_kmsKeyID
--- PASS: TestAccEC2InstanceDataSource_placementGroup (125.58s)
=== CONT TestAccEC2InstanceDataSource_ipv6Addresses
--- PASS: TestAccEC2InstanceDataSource_securityGroups (191.41s)
=== CONT TestAccEC2InstanceDataSource_secondaryPrivateIPs
--- PASS: TestAccEC2InstanceDataSource_vpc (126.24s)
=== CONT TestAccEC2InstanceDataSource_privateIP
--- PASS: TestAccEC2InstanceDataSource_EBSBlockDevice_kmsKeyID (107.52s)
=== CONT TestAccEC2InstanceDataSource_rootInstanceStore
--- PASS: TestAccEC2InstanceDataSource_secondaryPrivateIPs (132.06s)
=== CONT TestAccEC2InstanceDataSource_RootBlockDevice_kmsKeyID
--- PASS: TestAccEC2InstanceDataSource_ipv6Addresses (160.67s)
=== CONT TestAccEC2InstanceDataSource_gp2IopsDevice
--- PASS: TestAccEC2InstanceDataSource_rootInstanceStore (113.71s)
=== CONT TestAccEC2InstanceDataSource_blockDevices
--- PASS: TestAccEC2InstanceDataSource_privateIP (147.10s)
=== CONT TestAccEC2InstanceDataSource_gp3ThroughputDevice
--- PASS: TestAccEC2InstanceDataSource_RootBlockDevice_kmsKeyID (117.42s)
=== CONT TestAccEC2InstanceDataSource_azUserData
--- PASS: TestAccEC2InstanceDataSource_gp2IopsDevice (123.90s)
=== CONT TestAccEC2InstanceDataSource_tags
--- PASS: TestAccEC2InstanceDataSource_blockDevices (95.64s)
--- PASS: TestAccEC2InstanceDataSource_gp3ThroughputDevice (97.45s)
--- PASS: TestAccEC2InstanceDataSource_tags (116.43s)
--- PASS: TestAccEC2InstanceDataSource_azUserData (143.37s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 5761.446s
@hynd Thanks for the contribution 🎉 👏. |
This functionality has been released in v3.72.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. |
EC2 Instance tags can now be exposed via the metadata service, if enabled via a metadata option 🎉
https://aws.amazon.com/about-aws/whats-new/2022/01/instance-tags-amazon-ec2-instance-metadata-service/
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#work-with-tags-in-IMDS
Depends on #22456 - support for instance tags on Instance and Launch Template resources (but not Launch Configurations) was added to github.com/aws/aws-sdk-go in in v1.42.29.
Community Note
Relates #22456.
Closes #22465.
Output from acceptance testing: