Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for enabling primary ipv6 address on EC2 instance #36425

Merged
merged 23 commits into from
Dec 12, 2024

Conversation

arianvp
Copy link
Contributor

@arianvp arianvp commented Mar 16, 2024

Description

This PR adds support for Primary IPv6 Addresses.

When the boolean enable_primary_ipv6 is set; the first ipv6 address of the first interface is marked as the primary address.

Setting this boolean makes sure that the assigned Ipv6 address of the instance never changes. This is a prerequisite to use and instance in an IPv6 subnet with an IPv6 ELB target group (#35010 #36423 )

This option can not be undone. The address stays immutable. Though I'm not sure how to model set-once options in terraform. Feedback appreciated.

Relations

Closes #36424

References

Output from Acceptance Testing

% make testacc TESTS=TestAccXXX PKG=ec2

...

arianvp added 2 commits March 17, 2024 00:08
The first ipv6 address will be marked immutable and can not be removed
untill the instance is terminated
Copy link

Community Note

Voting for Prioritization

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

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added size/S Managed by automation to categorize the size of a PR. service/ec2 Issues and PRs that pertain to the ec2 service. service/vpc Issues and PRs that pertain to the vpc service. labels Mar 16, 2024
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Mar 16, 2024
@arianvp arianvp force-pushed the enable-primary-ipv6 branch from a44ea60 to 6ba9cb9 Compare March 17, 2024 00:00
@arianvp arianvp changed the title Enable primary ipv6 Add support for enabling primary ipv6 address on EC2 instance Mar 17, 2024
@github-actions github-actions bot added size/M Managed by automation to categorize the size of a PR. and removed size/S Managed by automation to categorize the size of a PR. labels Mar 17, 2024
arianvp added 3 commits March 17, 2024 09:39
Once this boolean is set to true it can not be set to false without
recreating the network interface.

IDK how to model it being false by default though
@justinretzolk justinretzolk added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Mar 18, 2024
@ankon
Copy link
Contributor

ankon commented Apr 11, 2024

@justinretzolk anything we can help to land this?

@arianvp
Copy link
Contributor Author

arianvp commented Jun 16, 2024

Any update on this? I really would like this to be in. Anything I can do to make this easier to merge or review? Thanks

@ankon
Copy link
Contributor

ankon commented Aug 7, 2024

Now that #37142 has landed, this one needs to be rebased & adapted to that, and basically is now "do the same thing, for VPC network interfaces & ec2 instances, please"?

@arianvp
Copy link
Contributor Author

arianvp commented Aug 7, 2024

Yep seems like it

@rafaelmedeiros1994
Copy link

Not an elegant solution, but it worked for me while we don't have this native:

Basically you run the cli command to create the network interface with --enable-primary-ipv6, fetch the new interface with a data block and then assign it to the network_interface of the ec2_instance:


#Create the interface
resource "terraform_data" "create_network_interface" {
  for_each = var.nat66_instances

  provisioner "local-exec" {
    command = <<EOT
      aws ec2 create-network-interface \
        --subnet-id ${aws_subnet.public_region2[each.value.subnet_name].id} \
        --description "Primary IPv6 enabled" \
        --groups ${aws_security_group.region2[each.value.security_groups].id} \
        --ipv6-address-count 1 \
        --enable-primary-ipv6 \
        --query 'NetworkInterface.NetworkInterfaceId' \
        --region ${var.region2} \
        --output text
    EOT
  }

  triggers_replace = {
    instance_id = each.key
  }
}

#Fetch the interface
data "aws_network_interface" "nat66_interfaces" {
  provider = aws.region2
  for_each = var.nat66_instances
  filter {
    name   = "description"
    values = ["Primary IPv6 enabled"]
  }
  filter {
    name   = "subnet-id"
    values = [aws_subnet.public_region2[each.value.subnet_name].id]
  }
  depends_on = [terraform_data.create_network_interface]
}

#Add the interface to the instance
resource "aws_instance" "nat66_instances" {
  for_each = var.nat66_instances

  instance_type          = each.value.instance_type
  network_interface {
    network_interface_id = data.aws_network_interface.nat66_interfaces[each.key].id
    device_index         = 0
  }
  key_name               = each.value.key_name

 (other attributes hidden)
}

image

Hope that helps.

@YakDriver YakDriver self-assigned this Dec 10, 2024
@github-actions github-actions bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Dec 10, 2024
@YakDriver YakDriver requested a review from a team as a code owner December 11, 2024 19:22
YakDriver
YakDriver previously approved these changes Dec 11, 2024
Copy link
Member

@YakDriver YakDriver left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! Support for primary ipv6 had been added to Launch Template so wasn't needed.

YakDriver
YakDriver previously approved these changes Dec 11, 2024
Copy link
Member

@YakDriver YakDriver left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

% make t T=TestAccVPCNetworkInterface_ipv6Primary K=vpc   
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/ec2/... -v -count 1 -parallel 20 -run='TestAccVPCNetworkInterface_ipv6Primary'  -timeout 360m
2024/12/11 13:57:33 Initializing Terraform AWS Provider...
=== RUN   TestAccVPCNetworkInterface_ipv6Primary
=== PAUSE TestAccVPCNetworkInterface_ipv6Primary
=== RUN   TestAccVPCNetworkInterface_ipv6PrimaryEnable
=== PAUSE TestAccVPCNetworkInterface_ipv6PrimaryEnable
=== RUN   TestAccVPCNetworkInterface_ipv6PrimaryDisable
=== PAUSE TestAccVPCNetworkInterface_ipv6PrimaryDisable
=== CONT  TestAccVPCNetworkInterface_ipv6Primary
=== CONT  TestAccVPCNetworkInterface_ipv6PrimaryDisable
=== CONT  TestAccVPCNetworkInterface_ipv6PrimaryEnable
--- PASS: TestAccVPCNetworkInterface_ipv6Primary (41.64s)
--- PASS: TestAccVPCNetworkInterface_ipv6PrimaryEnable (52.01s)
--- PASS: TestAccVPCNetworkInterface_ipv6PrimaryDisable (52.95s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ec2	57.110s
% make t T=TestAccEC2Instance_IPv6_primary K=ec2
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/ec2/... -v -count 1 -parallel 20 -run='TestAccEC2Instance_IPv6_primary'  -timeout 360m
2024/12/11 15:24:47 Initializing Terraform AWS Provider...
=== RUN   TestAccEC2Instance_IPv6_primaryEnable
=== PAUSE TestAccEC2Instance_IPv6_primaryEnable
=== RUN   TestAccEC2Instance_IPv6_primaryDisable
=== PAUSE TestAccEC2Instance_IPv6_primaryDisable
=== CONT  TestAccEC2Instance_IPv6_primaryEnable
=== CONT  TestAccEC2Instance_IPv6_primaryDisable
--- PASS: TestAccEC2Instance_IPv6_primaryEnable (115.61s)
--- PASS: TestAccEC2Instance_IPv6_primaryDisable (626.37s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ec2	630.685s

Copy link
Member

@YakDriver YakDriver left a comment

Choose a reason for hiding this comment

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

% make t T=TestAccEC2Instance_IP K=ec2          
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/ec2/... -v -count 1 -parallel 20 -run='TestAccEC2Instance_IP'  -timeout 360m
2024/12/11 16:50:16 Initializing Terraform AWS Provider...
=== RUN   TestAccEC2Instance_IPv6_supportAddressCount
=== PAUSE TestAccEC2Instance_IPv6_supportAddressCount
=== RUN   TestAccEC2Instance_IPv6_primaryEnable
=== PAUSE TestAccEC2Instance_IPv6_primaryEnable
=== RUN   TestAccEC2Instance_IPv6_primaryDisable
=== PAUSE TestAccEC2Instance_IPv6_primaryDisable
=== RUN   TestAccEC2Instance_IPv6_supportAddressCountWithIPv4
=== PAUSE TestAccEC2Instance_IPv6_supportAddressCountWithIPv4
=== RUN   TestAccEC2Instance_IPv6AddressCount
=== PAUSE TestAccEC2Instance_IPv6AddressCount
=== CONT  TestAccEC2Instance_IPv6_supportAddressCount
=== CONT  TestAccEC2Instance_IPv6_supportAddressCountWithIPv4
=== CONT  TestAccEC2Instance_IPv6AddressCount
=== CONT  TestAccEC2Instance_IPv6_primaryDisable
=== CONT  TestAccEC2Instance_IPv6_primaryEnable
--- PASS: TestAccEC2Instance_IPv6AddressCount (117.59s)
--- PASS: TestAccEC2Instance_IPv6_primaryEnable (135.88s)
--- PASS: TestAccEC2Instance_IPv6_supportAddressCountWithIPv4 (314.20s)
--- PASS: TestAccEC2Instance_IPv6_supportAddressCount (323.26s)
--- PASS: TestAccEC2Instance_IPv6_primaryDisable (646.85s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ec2	651.127s
% make t T=TestAccVPCNetworkInterface_ K=vpc     
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/ec2/... -v -count 1 -parallel 20 -run='TestAccVPCNetworkInterface_'  -timeout 360m
2024/12/11 17:09:35 Initializing Terraform AWS Provider...
=== RUN   TestAccVPCNetworkInterface_basic
=== PAUSE TestAccVPCNetworkInterface_basic
=== RUN   TestAccVPCNetworkInterface_ipv6
=== PAUSE TestAccVPCNetworkInterface_ipv6
=== RUN   TestAccVPCNetworkInterface_ipv6Primary
=== PAUSE TestAccVPCNetworkInterface_ipv6Primary
=== RUN   TestAccVPCNetworkInterface_ipv6PrimaryEnable
=== PAUSE TestAccVPCNetworkInterface_ipv6PrimaryEnable
=== RUN   TestAccVPCNetworkInterface_ipv6PrimaryDisable
=== PAUSE TestAccVPCNetworkInterface_ipv6PrimaryDisable
=== RUN   TestAccVPCNetworkInterface_tags
=== PAUSE TestAccVPCNetworkInterface_tags
=== RUN   TestAccVPCNetworkInterface_ipv6Count
=== PAUSE TestAccVPCNetworkInterface_ipv6Count
=== RUN   TestAccVPCNetworkInterface_disappears
=== PAUSE TestAccVPCNetworkInterface_disappears
=== RUN   TestAccVPCNetworkInterface_description
=== PAUSE TestAccVPCNetworkInterface_description
=== RUN   TestAccVPCNetworkInterface_attachment
=== PAUSE TestAccVPCNetworkInterface_attachment
=== RUN   TestAccVPCNetworkInterface_ignoreExternalAttachment
=== PAUSE TestAccVPCNetworkInterface_ignoreExternalAttachment
=== RUN   TestAccVPCNetworkInterface_sourceDestCheck
=== PAUSE TestAccVPCNetworkInterface_sourceDestCheck
=== RUN   TestAccVPCNetworkInterface_privateIPsCount
=== PAUSE TestAccVPCNetworkInterface_privateIPsCount
=== RUN   TestAccVPCNetworkInterface_ENIInterfaceType_efa
=== PAUSE TestAccVPCNetworkInterface_ENIInterfaceType_efa
=== RUN   TestAccVPCNetworkInterface_ENI_ipv4Prefix
=== PAUSE TestAccVPCNetworkInterface_ENI_ipv4Prefix
=== RUN   TestAccVPCNetworkInterface_ENI_ipv4PrefixCount
=== PAUSE TestAccVPCNetworkInterface_ENI_ipv4PrefixCount
=== RUN   TestAccVPCNetworkInterface_ENI_ipv6Prefix
=== PAUSE TestAccVPCNetworkInterface_ENI_ipv6Prefix
=== RUN   TestAccVPCNetworkInterface_ENI_ipv6PrefixCount
=== PAUSE TestAccVPCNetworkInterface_ENI_ipv6PrefixCount
=== RUN   TestAccVPCNetworkInterface_privateIPSet
=== PAUSE TestAccVPCNetworkInterface_privateIPSet
=== RUN   TestAccVPCNetworkInterface_privateIPList
=== PAUSE TestAccVPCNetworkInterface_privateIPList
=== CONT  TestAccVPCNetworkInterface_basic
=== CONT  TestAccVPCNetworkInterface_ignoreExternalAttachment
=== CONT  TestAccVPCNetworkInterface_tags
=== CONT  TestAccVPCNetworkInterface_ENI_ipv4PrefixCount
=== CONT  TestAccVPCNetworkInterface_ENI_ipv4Prefix
=== CONT  TestAccVPCNetworkInterface_attachment
=== CONT  TestAccVPCNetworkInterface_ipv6PrimaryDisable
=== CONT  TestAccVPCNetworkInterface_privateIPSet
=== CONT  TestAccVPCNetworkInterface_ENI_ipv6Prefix
=== CONT  TestAccVPCNetworkInterface_ipv6PrimaryEnable
=== CONT  TestAccVPCNetworkInterface_privateIPsCount
=== CONT  TestAccVPCNetworkInterface_sourceDestCheck
=== CONT  TestAccVPCNetworkInterface_ipv6Primary
=== CONT  TestAccVPCNetworkInterface_disappears
=== CONT  TestAccVPCNetworkInterface_ipv6Count
=== CONT  TestAccVPCNetworkInterface_ipv6
=== CONT  TestAccVPCNetworkInterface_ENIInterfaceType_efa
=== CONT  TestAccVPCNetworkInterface_ENI_ipv6PrefixCount
=== CONT  TestAccVPCNetworkInterface_description
=== CONT  TestAccVPCNetworkInterface_privateIPList
--- PASS: TestAccVPCNetworkInterface_disappears (35.59s)
--- PASS: TestAccVPCNetworkInterface_basic (37.52s)
--- PASS: TestAccVPCNetworkInterface_ENIInterfaceType_efa (38.77s)
--- PASS: TestAccVPCNetworkInterface_ipv6Primary (48.89s)
--- PASS: TestAccVPCNetworkInterface_description (53.48s)
--- PASS: TestAccVPCNetworkInterface_ipv6PrimaryEnable (61.74s)
--- PASS: TestAccVPCNetworkInterface_ipv6PrimaryDisable (62.79s)
--- PASS: TestAccVPCNetworkInterface_tags (65.66s)
--- PASS: TestAccVPCNetworkInterface_ENI_ipv4Prefix (66.28s)
--- PASS: TestAccVPCNetworkInterface_sourceDestCheck (74.38s)
--- PASS: TestAccVPCNetworkInterface_ipv6 (76.77s)
--- PASS: TestAccVPCNetworkInterface_ENI_ipv6Prefix (77.85s)
--- PASS: TestAccVPCNetworkInterface_ENI_ipv4PrefixCount (78.76s)
--- PASS: TestAccVPCNetworkInterface_privateIPsCount (84.04s)
--- PASS: TestAccVPCNetworkInterface_ipv6Count (88.52s)
--- PASS: TestAccVPCNetworkInterface_ENI_ipv6PrefixCount (89.63s)
--- PASS: TestAccVPCNetworkInterface_ignoreExternalAttachment (129.80s)
--- PASS: TestAccVPCNetworkInterface_privateIPSet (136.99s)
--- PASS: TestAccVPCNetworkInterface_privateIPList (211.14s)
--- PASS: TestAccVPCNetworkInterface_attachment (336.54s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ec2	340.716s
% make t T=TestAccEC2Instance_ K=ec2                  
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/ec2/... -v -count 1 -parallel 20 -run='TestAccEC2Instance_'  -timeout 360m
2024/12/11 17:16:45 Initializing Terraform AWS Provider...
=== RUN   TestAccEC2Instance_tags
=== PAUSE TestAccEC2Instance_tags
=== RUN   TestAccEC2Instance_tags_null
=== PAUSE TestAccEC2Instance_tags_null
=== RUN   TestAccEC2Instance_tags_EmptyMap
=== PAUSE TestAccEC2Instance_tags_EmptyMap
=== RUN   TestAccEC2Instance_tags_AddOnUpdate
=== PAUSE TestAccEC2Instance_tags_AddOnUpdate
=== RUN   TestAccEC2Instance_tags_EmptyTag_OnCreate
=== PAUSE TestAccEC2Instance_tags_EmptyTag_OnCreate
=== RUN   TestAccEC2Instance_tags_EmptyTag_OnUpdate_Add
=== PAUSE TestAccEC2Instance_tags_EmptyTag_OnUpdate_Add
=== RUN   TestAccEC2Instance_tags_EmptyTag_OnUpdate_Replace
=== PAUSE TestAccEC2Instance_tags_EmptyTag_OnUpdate_Replace
=== RUN   TestAccEC2Instance_tags_DefaultTags_providerOnly
=== PAUSE TestAccEC2Instance_tags_DefaultTags_providerOnly
=== RUN   TestAccEC2Instance_tags_DefaultTags_nonOverlapping
=== PAUSE TestAccEC2Instance_tags_DefaultTags_nonOverlapping
=== RUN   TestAccEC2Instance_tags_DefaultTags_overlapping
=== PAUSE TestAccEC2Instance_tags_DefaultTags_overlapping
=== RUN   TestAccEC2Instance_tags_DefaultTags_updateToProviderOnly
=== PAUSE TestAccEC2Instance_tags_DefaultTags_updateToProviderOnly
=== RUN   TestAccEC2Instance_tags_DefaultTags_updateToResourceOnly
=== PAUSE TestAccEC2Instance_tags_DefaultTags_updateToResourceOnly
=== RUN   TestAccEC2Instance_tags_DefaultTags_emptyResourceTag
=== PAUSE TestAccEC2Instance_tags_DefaultTags_emptyResourceTag
=== RUN   TestAccEC2Instance_tags_DefaultTags_emptyProviderOnlyTag
=== PAUSE TestAccEC2Instance_tags_DefaultTags_emptyProviderOnlyTag
=== RUN   TestAccEC2Instance_tags_DefaultTags_nullOverlappingResourceTag
=== PAUSE TestAccEC2Instance_tags_DefaultTags_nullOverlappingResourceTag
=== RUN   TestAccEC2Instance_tags_DefaultTags_nullNonOverlappingResourceTag
=== PAUSE TestAccEC2Instance_tags_DefaultTags_nullNonOverlappingResourceTag
=== RUN   TestAccEC2Instance_tags_ComputedTag_OnCreate
=== PAUSE TestAccEC2Instance_tags_ComputedTag_OnCreate
=== RUN   TestAccEC2Instance_tags_ComputedTag_OnUpdate_Add
=== PAUSE TestAccEC2Instance_tags_ComputedTag_OnUpdate_Add
=== RUN   TestAccEC2Instance_tags_ComputedTag_OnUpdate_Replace
=== PAUSE TestAccEC2Instance_tags_ComputedTag_OnUpdate_Replace
=== RUN   TestAccEC2Instance_tags_IgnoreTags_Overlap_DefaultTag
=== PAUSE TestAccEC2Instance_tags_IgnoreTags_Overlap_DefaultTag
=== RUN   TestAccEC2Instance_tags_IgnoreTags_Overlap_ResourceTag
=== PAUSE TestAccEC2Instance_tags_IgnoreTags_Overlap_ResourceTag
=== RUN   TestAccEC2Instance_basic
=== PAUSE TestAccEC2Instance_basic
=== RUN   TestAccEC2Instance_disappears
=== PAUSE TestAccEC2Instance_disappears
=== RUN   TestAccEC2Instance_inDefaultVPCBySgName
=== PAUSE TestAccEC2Instance_inDefaultVPCBySgName
=== RUN   TestAccEC2Instance_inDefaultVPCBySgID
=== PAUSE TestAccEC2Instance_inDefaultVPCBySgID
=== 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_EBSBlockDevice_RootBlockDevice_removed
=== PAUSE TestAccEC2Instance_EBSBlockDevice_RootBlockDevice_removed
=== RUN   TestAccEC2Instance_RootBlockDevice_kmsKeyARN
=== PAUSE TestAccEC2Instance_RootBlockDevice_kmsKeyARN
=== RUN   TestAccEC2Instance_userDataBase64
=== PAUSE TestAccEC2Instance_userDataBase64
=== RUN   TestAccEC2Instance_userDataBase64_updateWithBashFile
=== PAUSE TestAccEC2Instance_userDataBase64_updateWithBashFile
=== RUN   TestAccEC2Instance_userDataBase64_updateWithZipFile
=== PAUSE TestAccEC2Instance_userDataBase64_updateWithZipFile
=== RUN   TestAccEC2Instance_userDataBase64_update
=== PAUSE TestAccEC2Instance_userDataBase64_update
=== 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_autoRecovery
=== PAUSE TestAccEC2Instance_autoRecovery
=== RUN   TestAccEC2Instance_disableAPIStop
=== PAUSE TestAccEC2Instance_disableAPIStop
=== RUN   TestAccEC2Instance_disableAPITerminationFinalFalse
=== PAUSE TestAccEC2Instance_disableAPITerminationFinalFalse
=== RUN   TestAccEC2Instance_disableAPITerminationFinalTrue
=== PAUSE TestAccEC2Instance_disableAPITerminationFinalTrue
=== 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_primaryEnable
=== PAUSE TestAccEC2Instance_IPv6_primaryEnable
=== RUN   TestAccEC2Instance_IPv6_primaryDisable
=== PAUSE TestAccEC2Instance_IPv6_primaryDisable
=== RUN   TestAccEC2Instance_IPv6_supportAddressCountWithIPv4
=== PAUSE TestAccEC2Instance_IPv6_supportAddressCountWithIPv4
=== RUN   TestAccEC2Instance_IPv6AddressCount
=== PAUSE TestAccEC2Instance_IPv6AddressCount
=== RUN   TestAccEC2Instance_networkInstanceSecurityGroups
=== PAUSE TestAccEC2Instance_networkInstanceSecurityGroups
=== RUN   TestAccEC2Instance_networkInstanceRemovingAllSecurityGroups
=== PAUSE TestAccEC2Instance_networkInstanceRemovingAllSecurityGroups
=== RUN   TestAccEC2Instance_networkInstanceVPCSecurityGroupIDs
=== PAUSE TestAccEC2Instance_networkInstanceVPCSecurityGroupIDs
=== RUN   TestAccEC2Instance_BlockDeviceTags_volumeTags
=== PAUSE TestAccEC2Instance_BlockDeviceTags_volumeTags
=== RUN   TestAccEC2Instance_BlockDeviceTags_attachedVolume
=== PAUSE TestAccEC2Instance_BlockDeviceTags_attachedVolume
=== RUN   TestAccEC2Instance_BlockDeviceTags_ebsAndRoot
=== PAUSE TestAccEC2Instance_BlockDeviceTags_ebsAndRoot
=== RUN   TestAccEC2Instance_BlockDeviceTags_defaultTagsVolumeTags
=== PAUSE TestAccEC2Instance_BlockDeviceTags_defaultTagsVolumeTags
=== RUN   TestAccEC2Instance_BlockDeviceTags_defaultTagsEBSRoot
=== PAUSE TestAccEC2Instance_BlockDeviceTags_defaultTagsEBSRoot
=== RUN   TestAccEC2Instance_BlockDeviceTags_defaultTagsRBDOverlap
=== PAUSE TestAccEC2Instance_BlockDeviceTags_defaultTagsRBDOverlap
=== RUN   TestAccEC2Instance_BlockDeviceTags_defaultTagsEBDOverlaps
=== PAUSE TestAccEC2Instance_BlockDeviceTags_defaultTagsEBDOverlaps
=== RUN   TestAccEC2Instance_BlockDeviceTags_defaultTagsVolumeTagsOverlap
=== PAUSE TestAccEC2Instance_BlockDeviceTags_defaultTagsVolumeTagsOverlap
=== RUN   TestAccEC2Instance_instanceProfileChange
=== PAUSE TestAccEC2Instance_instanceProfileChange
=== RUN   TestAccEC2Instance_iamInstanceProfile
=== PAUSE TestAccEC2Instance_iamInstanceProfile
=== RUN   TestAccEC2Instance_iamInstanceProfilePath
=== PAUSE TestAccEC2Instance_iamInstanceProfilePath
=== RUN   TestAccEC2Instance_privateIP
=== PAUSE TestAccEC2Instance_privateIP
=== RUN   TestAccEC2Instance_associatePublicIPAndPrivateIP
=== PAUSE TestAccEC2Instance_associatePublicIPAndPrivateIP
=== RUN   TestAccEC2Instance_Empty_privateIP
=== PAUSE TestAccEC2Instance_Empty_privateIP
=== RUN   TestAccEC2Instance_PrivateDNSNameOptions_computed
=== PAUSE TestAccEC2Instance_PrivateDNSNameOptions_computed
=== RUN   TestAccEC2Instance_PrivateDNSNameOptions_configured
=== PAUSE TestAccEC2Instance_PrivateDNSNameOptions_configured
=== RUN   TestAccEC2Instance_keyPairCheck
=== PAUSE TestAccEC2Instance_keyPairCheck
=== RUN   TestAccEC2Instance_forceNewAndTagsDrift
=== PAUSE TestAccEC2Instance_forceNewAndTagsDrift
=== RUN   TestAccEC2Instance_changeInstanceType
=== PAUSE TestAccEC2Instance_changeInstanceType
=== RUN   TestAccEC2Instance_changeInstanceTypeReplace
=== PAUSE TestAccEC2Instance_changeInstanceTypeReplace
=== RUN   TestAccEC2Instance_changeInstanceTypeAndUserData
=== PAUSE TestAccEC2Instance_changeInstanceTypeAndUserData
=== RUN   TestAccEC2Instance_changeInstanceTypeAndUserDataBase64
=== PAUSE TestAccEC2Instance_changeInstanceTypeAndUserDataBase64
=== 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_gp3RootBlockDevice
=== PAUSE TestAccEC2Instance_gp3RootBlockDevice
=== RUN   TestAccEC2Instance_primaryNetworkInterface
=== PAUSE TestAccEC2Instance_primaryNetworkInterface
=== RUN   TestAccEC2Instance_networkCardIndex
=== PAUSE TestAccEC2Instance_networkCardIndex
=== 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_LaunchTemplate_iamInstanceProfile
=== PAUSE TestAccEC2Instance_LaunchTemplate_iamInstanceProfile
=== RUN   TestAccEC2Instance_LaunchTemplate_spotAndStop
=== PAUSE TestAccEC2Instance_LaunchTemplate_spotAndStop
=== RUN   TestAccEC2Instance_LaunchTemplate_vpcSecurityGroup
=== PAUSE TestAccEC2Instance_LaunchTemplate_vpcSecurityGroup
=== RUN   TestAccEC2Instance_GetPasswordData_falseToTrue
=== PAUSE TestAccEC2Instance_GetPasswordData_falseToTrue
=== RUN   TestAccEC2Instance_GetPasswordData_trueToFalse
=== PAUSE TestAccEC2Instance_GetPasswordData_trueToFalse
=== RUN   TestAccEC2Instance_cpuOptionsAmdSevSnpUnspecifiedToDisabledToEnabledToUnspecified
=== PAUSE TestAccEC2Instance_cpuOptionsAmdSevSnpUnspecifiedToDisabledToEnabledToUnspecified
=== RUN   TestAccEC2Instance_cpuOptionsAmdSevSnpUnspecifiedToEnabledToDisabledToUnspecified
=== PAUSE TestAccEC2Instance_cpuOptionsAmdSevSnpUnspecifiedToEnabledToDisabledToUnspecified
=== RUN   TestAccEC2Instance_cpuOptionsAmdSevSnpEnabledToDisabled
=== PAUSE TestAccEC2Instance_cpuOptionsAmdSevSnpEnabledToDisabled
=== RUN   TestAccEC2Instance_cpuOptionsAmdSevSnpDisabledToEnabled
=== PAUSE TestAccEC2Instance_cpuOptionsAmdSevSnpDisabledToEnabled
=== RUN   TestAccEC2Instance_cpuOptionsAmdSevSnpCoreThreads
=== PAUSE TestAccEC2Instance_cpuOptionsAmdSevSnpCoreThreads
=== RUN   TestAccEC2Instance_cpuOptionsCoreThreads
=== PAUSE TestAccEC2Instance_cpuOptionsCoreThreads
=== RUN   TestAccEC2Instance_cpuOptionsCoreThreadsMigration
=== PAUSE TestAccEC2Instance_cpuOptionsCoreThreadsMigration
=== RUN   TestAccEC2Instance_cpuOptionsCoreThreadsUnspecifiedToSpecified
=== PAUSE TestAccEC2Instance_cpuOptionsCoreThreadsUnspecifiedToSpecified
=== 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_CreditSpecificationUnknownCPUCredits_t3a
=== PAUSE TestAccEC2Instance_CreditSpecificationUnknownCPUCredits_t3a
=== RUN   TestAccEC2Instance_CreditSpecificationUnknownCPUCredits_t4g
=== PAUSE TestAccEC2Instance_CreditSpecificationUnknownCPUCredits_t4g
=== 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_UserData
=== PAUSE TestAccEC2Instance_UserData
=== RUN   TestAccEC2Instance_UserData_update
=== PAUSE TestAccEC2Instance_UserData_update
=== RUN   TestAccEC2Instance_UserData_stringToEncodedString
=== PAUSE TestAccEC2Instance_UserData_stringToEncodedString
=== RUN   TestAccEC2Instance_UserData_emptyStringToUnspecified
=== PAUSE TestAccEC2Instance_UserData_emptyStringToUnspecified
=== RUN   TestAccEC2Instance_UserData_unspecifiedToEmptyString
=== PAUSE TestAccEC2Instance_UserData_unspecifiedToEmptyString
=== RUN   TestAccEC2Instance_UserDataReplaceOnChange_On
=== PAUSE TestAccEC2Instance_UserDataReplaceOnChange_On
=== RUN   TestAccEC2Instance_UserDataReplaceOnChange_On_Base64
=== PAUSE TestAccEC2Instance_UserDataReplaceOnChange_On_Base64
=== RUN   TestAccEC2Instance_UserDataReplaceOnChange_Off
=== PAUSE TestAccEC2Instance_UserDataReplaceOnChange_Off
=== RUN   TestAccEC2Instance_UserDataReplaceOnChange_Off_Base64
=== PAUSE TestAccEC2Instance_UserDataReplaceOnChange_Off_Base64
=== 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_basicWithSpot
=== PAUSE TestAccEC2Instance_basicWithSpot
=== CONT  TestAccEC2Instance_tags
=== CONT  TestAccEC2Instance_EBSRootDevice_modifyType
=== CONT  TestAccEC2Instance_cpuOptionsAmdSevSnpCoreThreads
=== CONT  TestAccEC2Instance_autoRecovery
=== CONT  TestAccEC2Instance_CreditSpecificationUnlimitedCPUCredits_t2Tot3Taint
=== CONT  TestAccEC2Instance_EBSRootDevice_modifySize
=== CONT  TestAccEC2Instance_BlockDeviceTags_defaultTagsEBSRoot
=== CONT  TestAccEC2Instance_hibernation
=== CONT  TestAccEC2Instance_basicWithSpot
=== CONT  TestAccEC2Instance_CapacityReservation_modifyTarget
=== CONT  TestAccEC2Instance_CapacityReservation_modifyPreference
=== CONT  TestAccEC2Instance_CapacityReservation_targetID
=== CONT  TestAccEC2Instance_CapacityReservationPreference_open
=== CONT  TestAccEC2Instance_CapacityReservation_unspecifiedDefaultsToOpen
=== CONT  TestAccEC2Instance_enclaveOptions
=== CONT  TestAccEC2Instance_metadataOptions
=== CONT  TestAccEC2Instance_basic
=== CONT  TestAccEC2Instance_sourceDestCheck
=== CONT  TestAccEC2Instance_noAMIEphemeralDevices
=== CONT  TestAccEC2Instance_CapacityReservationPreference_none
=== NAME  TestAccEC2Instance_cpuOptionsAmdSevSnpCoreThreads
    ec2_instance_test.go:4204: skipping tests; AWS_DEFAULT_REGION (us-west-2) not supported. Supported: [us-east-2]
--- SKIP: TestAccEC2Instance_cpuOptionsAmdSevSnpCoreThreads (0.44s)
=== CONT  TestAccEC2Instance_rootInstanceStore
--- PASS: TestAccEC2Instance_basicWithSpot (99.11s)
=== CONT  TestAccEC2Instance_blockDevices
--- PASS: TestAccEC2Instance_CapacityReservation_unspecifiedDefaultsToOpen (102.55s)
=== CONT  TestAccEC2Instance_gp2WithIopsValue
--- PASS: TestAccEC2Instance_CapacityReservationPreference_open (106.21s)
=== CONT  TestAccEC2Instance_gp2IopsDevice
--- PASS: TestAccEC2Instance_gp2WithIopsValue (4.79s)
=== CONT  TestAccEC2Instance_userDataBase64_update
--- PASS: TestAccEC2Instance_noAMIEphemeralDevices (113.72s)
=== CONT  TestAccEC2Instance_userDataBase64_updateWithZipFile
--- PASS: TestAccEC2Instance_autoRecovery (121.23s)
=== CONT  TestAccEC2Instance_userDataBase64_updateWithBashFile
--- PASS: TestAccEC2Instance_EBSRootDevice_modifySize (121.76s)
=== CONT  TestAccEC2Instance_userDataBase64
--- PASS: TestAccEC2Instance_tags (125.96s)
=== CONT  TestAccEC2Instance_RootBlockDevice_kmsKeyARN
--- PASS: TestAccEC2Instance_sourceDestCheck (129.95s)
=== CONT  TestAccEC2Instance_EBSBlockDevice_RootBlockDevice_removed
--- PASS: TestAccEC2Instance_BlockDeviceTags_defaultTagsEBSRoot (139.50s)
=== CONT  TestAccEC2Instance_EBSBlockDevice_invalidThroughputForVolumeType
--- PASS: TestAccEC2Instance_EBSBlockDevice_invalidThroughputForVolumeType (5.35s)
=== CONT  TestAccEC2Instance_EBSBlockDevice_invalidIopsForVolumeType
--- PASS: TestAccEC2Instance_EBSBlockDevice_invalidIopsForVolumeType (5.50s)
=== CONT  TestAccEC2Instance_EBSBlockDevice_kmsKeyARN
--- PASS: TestAccEC2Instance_EBSRootDevice_modifyType (166.92s)
=== CONT  TestAccEC2Instance_atLeastOneOtherEBSVolume
--- PASS: TestAccEC2Instance_blockDevices (82.59s)
=== CONT  TestAccEC2Instance_inDefaultVPCBySgID
--- PASS: TestAccEC2Instance_gp2IopsDevice (82.45s)
=== CONT  TestAccEC2Instance_inDefaultVPCBySgName
--- PASS: TestAccEC2Instance_metadataOptions (206.74s)
=== CONT  TestAccEC2Instance_disappears
--- PASS: TestAccEC2Instance_CapacityReservationPreference_none (208.59s)
=== CONT  TestAccEC2Instance_tags_DefaultTags_updateToResourceOnly
=== NAME  TestAccEC2Instance_CapacityReservation_modifyTarget
    acctest.go:1715: skipping test for aws/us-west-2: Error running apply: exit status 1
        
        Error: starting EC2 Instance (i-0de61b1ea18070c4b): operation error EC2: StartInstances, https response error StatusCode: 400, RequestID: 4ac98cdf-27c4-4698-b443-a989686e8f06, api error ReservationCapacityExceeded: The requested reservation does not have sufficient compatible and available capacity for this request.
        
          with aws_instance.test,
          on terraform_plugin_test.tf line 50, in resource "aws_instance" "test":
          50: resource "aws_instance" "test" {
        
--- SKIP: TestAccEC2Instance_CapacityReservation_modifyTarget (246.82s)
=== CONT  TestAccEC2Instance_tags_IgnoreTags_Overlap_ResourceTag
--- PASS: TestAccEC2Instance_EBSBlockDevice_kmsKeyARN (120.25s)
=== CONT  TestAccEC2Instance_tags_IgnoreTags_Overlap_DefaultTag
=== CONT  TestAccEC2Instance_tags_ComputedTag_OnUpdate_Replace
--- PASS: TestAccEC2Instance_EBSBlockDevice_RootBlockDevice_removed (153.76s)
--- PASS: TestAccEC2Instance_tags_DefaultTags_updateToResourceOnly (96.75s)
=== CONT  TestAccEC2Instance_tags_ComputedTag_OnUpdate_Add
--- PASS: TestAccEC2Instance_basic (323.38s)
=== CONT  TestAccEC2Instance_tags_ComputedTag_OnCreate
--- PASS: TestAccEC2Instance_CapacityReservation_targetID (360.66s)
=== CONT  TestAccEC2Instance_tags_DefaultTags_nullNonOverlappingResourceTag
--- PASS: TestAccEC2Instance_tags_ComputedTag_OnUpdate_Replace (82.47s)
=== CONT  TestAccEC2Instance_tags_DefaultTags_nullOverlappingResourceTag
--- PASS: TestAccEC2Instance_tags_ComputedTag_OnUpdate_Add (82.42s)
=== CONT  TestAccEC2Instance_tags_DefaultTags_emptyProviderOnlyTag
--- PASS: TestAccEC2Instance_tags_IgnoreTags_Overlap_ResourceTag (145.43s)
=== CONT  TestAccEC2Instance_tags_DefaultTags_emptyResourceTag
--- PASS: TestAccEC2Instance_enclaveOptions (397.31s)
=== CONT  TestAccEC2Instance_UserData_unspecifiedToEmptyString
--- PASS: TestAccEC2Instance_tags_ComputedTag_OnCreate (86.13s)
=== CONT  TestAccEC2Instance_UserDataReplaceOnChange_On_Base64
--- PASS: TestAccEC2Instance_tags_IgnoreTags_Overlap_DefaultTag (160.47s)
=== CONT  TestAccEC2Instance_UserDataReplaceOnChange_On
--- PASS: TestAccEC2Instance_RootBlockDevice_kmsKeyARN (323.50s)
=== CONT  TestAccEC2Instance_CreditSpecificationUnknownCPUCredits_t3
--- PASS: TestAccEC2Instance_userDataBase64 (332.95s)
=== CONT  TestAccEC2Instance_CreditSpecificationStandardCPUCredits_t2Tot3Taint
--- PASS: TestAccEC2Instance_rootInstanceStore (493.08s)
=== CONT  TestAccEC2Instance_CreditSpecificationT3_updateCPUCredits
--- PASS: TestAccEC2Instance_inDefaultVPCBySgName (332.83s)
=== CONT  TestAccEC2Instance_CreditSpecificationT3_unlimitedCPUCredits
--- PASS: TestAccEC2Instance_disappears (323.15s)
=== CONT  TestAccEC2Instance_CreditSpecificationT3_standardCPUCredits
--- PASS: TestAccEC2Instance_inDefaultVPCBySgID (353.34s)
=== CONT  TestAccEC2Instance_CreditSpecificationT3_unspecifiedDefaultsToUnlimited
--- PASS: TestAccEC2Instance_atLeastOneOtherEBSVolume (402.75s)
=== CONT  TestAccEC2Instance_CreditSpecification_isNotAppliedToNonBurstable
--- PASS: TestAccEC2Instance_CreditSpecificationT3_unlimitedCPUCredits (91.18s)
=== CONT  TestAccEC2Instance_CreditSpecification_updateCPUCredits
--- PASS: TestAccEC2Instance_CreditSpecificationT3_updateCPUCredits (122.45s)
=== CONT  TestAccEC2Instance_CreditSpecificationUnknownCPUCredits_t4g
--- PASS: TestAccEC2Instance_CreditSpecificationT3_standardCPUCredits (121.41s)
=== CONT  TestAccEC2Instance_CreditSpecificationUnknownCPUCredits_t3a
--- PASS: TestAccEC2Instance_tags_DefaultTags_nullNonOverlappingResourceTag (309.82s)
=== CONT  TestAccEC2Instance_AssociatePublic_defaultPublic
--- PASS: TestAccEC2Instance_CapacityReservation_modifyPreference (683.93s)
=== CONT  TestAccEC2Instance_cpuOptionsAmdSevSnpDisabledToEnabled
    ec2_instance_test.go:4155: skipping tests; AWS_DEFAULT_REGION (us-west-2) not supported. Supported: [us-east-2]
--- SKIP: TestAccEC2Instance_cpuOptionsAmdSevSnpDisabledToEnabled (0.00s)
=== CONT  TestAccEC2Instance_cpuOptionsAmdSevSnpEnabledToDisabled
    ec2_instance_test.go:4111: skipping tests; AWS_DEFAULT_REGION (us-west-2) not supported. Supported: [us-east-2]
--- SKIP: TestAccEC2Instance_cpuOptionsAmdSevSnpEnabledToDisabled (0.00s)
=== CONT  TestAccEC2Instance_cpuOptionsAmdSevSnpUnspecifiedToEnabledToDisabledToUnspecified
    ec2_instance_test.go:4045: skipping tests; AWS_DEFAULT_REGION (us-west-2) not supported. Supported: [us-east-2]
--- SKIP: TestAccEC2Instance_cpuOptionsAmdSevSnpUnspecifiedToEnabledToDisabledToUnspecified (0.00s)
=== CONT  TestAccEC2Instance_cpuOptionsAmdSevSnpUnspecifiedToDisabledToEnabledToUnspecified
    ec2_instance_test.go:3978: skipping tests; AWS_DEFAULT_REGION (us-west-2) not supported. Supported: [us-east-2]
--- SKIP: TestAccEC2Instance_cpuOptionsAmdSevSnpUnspecifiedToDisabledToEnabledToUnspecified (0.00s)
=== CONT  TestAccEC2Instance_GetPasswordData_trueToFalse
--- PASS: TestAccEC2Instance_tags_DefaultTags_nullOverlappingResourceTag (319.03s)
=== CONT  TestAccEC2Instance_GetPasswordData_falseToTrue
--- PASS: TestAccEC2Instance_tags_DefaultTags_emptyProviderOnlyTag (298.61s)
=== CONT  TestAccEC2Instance_UserDataReplaceOnChange_Off
--- PASS: TestAccEC2Instance_CreditSpecificationUnlimitedCPUCredits_t2Tot3Taint (688.14s)
=== CONT  TestAccEC2Instance_UserDataReplaceOnChange_Off_Base64
--- PASS: TestAccEC2Instance_hibernation (694.48s)
=== CONT  TestAccEC2Instance_CreditSpecificationUnspecifiedToEmpty_nonBurstable
--- PASS: TestAccEC2Instance_UserData_unspecifiedToEmptyString (299.61s)
=== CONT  TestAccEC2Instance_CreditSpecificationUnknownCPUCredits_t2
--- PASS: TestAccEC2Instance_userDataBase64_update (616.22s)
=== CONT  TestAccEC2Instance_CreditSpecification_unlimitedCPUCredits
--- PASS: TestAccEC2Instance_tags_DefaultTags_emptyResourceTag (350.14s)
=== CONT  TestAccEC2Instance_CreditSpecification_standardCPUCredits
--- PASS: TestAccEC2Instance_CreditSpecification_updateCPUCredits (132.00s)
=== CONT  TestAccEC2Instance_CreditSpecification_unspecifiedDefaultsToStandard
--- PASS: TestAccEC2Instance_userDataBase64_updateWithBashFile (657.69s)
=== CONT  TestAccEC2Instance_tags_EmptyTag_OnUpdate_Replace
--- PASS: TestAccEC2Instance_userDataBase64_updateWithZipFile (667.56s)
=== CONT  TestAccEC2Instance_tags_AddOnUpdate
--- PASS: TestAccEC2Instance_CreditSpecificationUnknownCPUCredits_t3 (353.92s)
=== CONT  TestAccEC2Instance_tags_DefaultTags_updateToProviderOnly
=== CONT  TestAccEC2Instance_tags_EmptyTag_OnUpdate_Add
--- PASS: TestAccEC2Instance_CreditSpecification_unlimitedCPUCredits (81.55s)
--- PASS: TestAccEC2Instance_CreditSpecification_standardCPUCredits (81.75s)
=== CONT  TestAccEC2Instance_tags_DefaultTags_overlapping
--- PASS: TestAccEC2Instance_CreditSpecificationUnspecifiedToEmpty_nonBurstable (135.06s)
=== CONT  TestAccEC2Instance_tags_EmptyTag_OnCreate
--- PASS: TestAccEC2Instance_CreditSpecificationT3_unspecifiedDefaultsToUnlimited (322.85s)
=== CONT  TestAccEC2Instance_tags_DefaultTags_nonOverlapping
--- PASS: TestAccEC2Instance_GetPasswordData_falseToTrue (186.19s)
=== CONT  TestAccEC2Instance_tags_DefaultTags_providerOnly
--- PASS: TestAccEC2Instance_tags_EmptyTag_OnUpdate_Replace (101.10s)
=== CONT  TestAccEC2Instance_networkCardIndex
--- PASS: TestAccEC2Instance_tags_AddOnUpdate (111.04s)
=== CONT  TestAccEC2Instance_AssociatePublic_defaultPrivate
--- PASS: TestAccEC2Instance_CreditSpecification_isNotAppliedToNonBurstable (333.24s)
=== CONT  TestAccEC2Instance_NewNetworkInterface_privateIPAndSecondaryPrivateIPsUpdate
--- PASS: TestAccEC2Instance_tags_DefaultTags_updateToProviderOnly (100.12s)
=== CONT  TestAccEC2Instance_NewNetworkInterface_privateIPAndSecondaryPrivateIPs
--- PASS: TestAccEC2Instance_tags_EmptyTag_OnUpdate_Add (131.03s)
=== CONT  TestAccEC2Instance_NewNetworkInterface_emptyPrivateIPAndSecondaryPrivateIPsUpdate
--- PASS: TestAccEC2Instance_CreditSpecificationUnknownCPUCredits_t4g (333.63s)
=== CONT  TestAccEC2Instance_PrivateDNSNameOptions_computed
--- PASS: TestAccEC2Instance_tags_DefaultTags_overlapping (137.00s)
=== CONT  TestAccEC2Instance_NewNetworkInterface_emptyPrivateIPAndSecondaryPrivateIPs
--- PASS: TestAccEC2Instance_tags_DefaultTags_nonOverlapping (105.38s)
=== CONT  TestAccEC2Instance_NewNetworkInterface_publicIPAndSecondaryPrivateIPs
--- PASS: TestAccEC2Instance_tags_EmptyTag_OnCreate (145.86s)
=== CONT  TestAccEC2Instance_EBSRootDevice_basic
--- PASS: TestAccEC2Instance_GetPasswordData_trueToFalse (309.40s)
=== CONT  TestAccEC2Instance_addSecurityGroupNetworkInterface
--- PASS: TestAccEC2Instance_CreditSpecificationUnknownCPUCredits_t3a (343.70s)
=== CONT  TestAccEC2Instance_changeInstanceTypeAndUserDataBase64
--- PASS: TestAccEC2Instance_CreditSpecificationUnknownCPUCredits_t2 (303.20s)
=== CONT  TestAccEC2Instance_addSecondaryInterface
--- PASS: TestAccEC2Instance_UserDataReplaceOnChange_On_Base64 (597.16s)
=== CONT  TestAccEC2Instance_changeInstanceTypeAndUserData
--- PASS: TestAccEC2Instance_AssociatePublic_defaultPublic (354.47s)
=== CONT  TestAccEC2Instance_primaryNetworkInterfaceSourceDestCheck
--- PASS: TestAccEC2Instance_NewNetworkInterface_privateIPAndSecondaryPrivateIPsUpdate (125.44s)
=== CONT  TestAccEC2Instance_iamInstanceProfile
--- PASS: TestAccEC2Instance_tags_DefaultTags_providerOnly (157.75s)
=== CONT  TestAccEC2Instance_changeInstanceTypeReplace
--- PASS: TestAccEC2Instance_UserDataReplaceOnChange_On (618.40s)
=== CONT  TestAccEC2Instance_cpuOptionsCoreThreadsUnspecifiedToSpecified
--- PASS: TestAccEC2Instance_NewNetworkInterface_emptyPrivateIPAndSecondaryPrivateIPsUpdate (125.38s)
=== CONT  TestAccEC2Instance_changeInstanceType
--- PASS: TestAccEC2Instance_EBSRootDevice_basic (90.56s)
=== CONT  TestAccEC2Instance_CreditSpecificationEmpty_nonBurstable
--- PASS: TestAccEC2Instance_CreditSpecification_unspecifiedDefaultsToStandard (323.50s)
=== CONT  TestAccEC2Instance_forceNewAndTagsDrift
--- PASS: TestAccEC2Instance_CreditSpecificationStandardCPUCredits_t2Tot3Taint (637.34s)
=== CONT  TestAccEC2Instance_privateIP
--- PASS: TestAccEC2Instance_cpuOptionsCoreThreadsUnspecifiedToSpecified (121.19s)
=== CONT  TestAccEC2Instance_keyPairCheck
--- PASS: TestAccEC2Instance_networkCardIndex (324.73s)
=== CONT  TestAccEC2Instance_associatePublicIPAndPrivateIP
--- PASS: TestAccEC2Instance_NewNetworkInterface_privateIPAndSecondaryPrivateIPs (324.49s)
=== CONT  TestAccEC2Instance_cpuOptionsCoreThreadsMigration
--- PASS: TestAccEC2Instance_AssociatePublic_defaultPrivate (353.83s)
=== CONT  TestAccEC2Instance_tags_EmptyMap
--- PASS: TestAccEC2Instance_addSecurityGroupNetworkInterface (259.65s)
=== CONT  TestAccEC2Instance_BlockDeviceTags_defaultTagsVolumeTagsOverlap
--- PASS: TestAccEC2Instance_NewNetworkInterface_emptyPrivateIPAndSecondaryPrivateIPs (334.97s)
=== CONT  TestAccEC2Instance_instanceProfileChange
--- PASS: TestAccEC2Instance_UserDataReplaceOnChange_Off (617.59s)
=== CONT  TestAccEC2Instance_BlockDeviceTags_defaultTagsEBDOverlaps
--- PASS: TestAccEC2Instance_UserDataReplaceOnChange_Off_Base64 (616.69s)
=== CONT  TestAccEC2Instance_LaunchTemplate_setSpecificVersion
--- PASS: TestAccEC2Instance_cpuOptionsCoreThreadsMigration (90.29s)
=== CONT  TestAccEC2Instance_LaunchTemplate_spotAndStop
--- PASS: TestAccEC2Instance_addSecondaryInterface (320.09s)
=== CONT  TestAccEC2Instance_LaunchTemplate_iamInstanceProfile
--- PASS: TestAccEC2Instance_PrivateDNSNameOptions_computed (375.48s)
=== CONT  TestAccEC2Instance_LaunchTemplate_swapIDAndName
--- PASS: TestAccEC2Instance_iamInstanceProfile (306.83s)
=== CONT  TestAccEC2Instance_LaunchTemplate_updateTemplateVersion
--- PASS: TestAccEC2Instance_tags_EmptyMap (89.99s)
=== CONT  TestAccEC2Instance_LaunchTemplateModifyTemplate_defaultVersion
--- PASS: TestAccEC2Instance_primaryNetworkInterfaceSourceDestCheck (325.56s)
=== CONT  TestAccEC2Instance_tags_null
--- PASS: TestAccEC2Instance_BlockDeviceTags_defaultTagsVolumeTagsOverlap (109.94s)
=== CONT  TestAccEC2Instance_EBSRootDeviceMultipleBlockDevices_modifySize
--- PASS: TestAccEC2Instance_CreditSpecificationEmpty_nonBurstable (312.02s)
=== CONT  TestAccEC2Instance_primaryNetworkInterface
--- PASS: TestAccEC2Instance_LaunchTemplate_setSpecificVersion (82.70s)
=== CONT  TestAccEC2Instance_gp3RootBlockDevice
--- PASS: TestAccEC2Instance_LaunchTemplate_swapIDAndName (68.41s)
=== CONT  TestAccEC2Instance_EBSRootDevice_multipleDynamicEBSBlockDevices
--- PASS: TestAccEC2Instance_privateIP (312.37s)
=== CONT  TestAccEC2Instance_EBSRootDeviceMultipleBlockDevices_modifyDeleteOnTermination
--- PASS: TestAccEC2Instance_tags_null (80.39s)
=== CONT  TestAccEC2Instance_UserData_stringToEncodedString
--- PASS: TestAccEC2Instance_LaunchTemplateModifyTemplate_defaultVersion (95.69s)
=== CONT  TestAccEC2Instance_UserData_emptyStringToUnspecified
--- PASS: TestAccEC2Instance_instanceProfileChange (162.66s)
=== CONT  TestAccEC2Instance_UserData_update
--- PASS: TestAccEC2Instance_changeInstanceType (421.87s)
=== CONT  TestAccEC2Instance_cpuOptionsCoreThreads
--- PASS: TestAccEC2Instance_keyPairCheck (314.12s)
=== CONT  TestAccEC2Instance_BlockDeviceTags_defaultTagsRBDOverlap
--- PASS: TestAccEC2Instance_EBSRootDeviceMultipleBlockDevices_modifySize (133.72s)
=== CONT  TestAccEC2Instance_EBSRootDeviceModifyThroughput_gp3
--- PASS: TestAccEC2Instance_EBSRootDeviceMultipleBlockDevices_modifyDeleteOnTermination (93.04s)
=== CONT  TestAccEC2Instance_EBSRootDevice_modifyAll
--- PASS: TestAccEC2Instance_associatePublicIPAndPrivateIP (302.25s)
=== CONT  TestAccEC2Instance_EBSRootDevice_modifyDeleteOnTermination
--- PASS: TestAccEC2Instance_gp3RootBlockDevice (133.84s)
=== CONT  TestAccEC2Instance_EBSRootDeviceModifyIOPS_io2
--- PASS: TestAccEC2Instance_NewNetworkInterface_publicIPAndSecondaryPrivateIPs (649.38s)
=== CONT  TestAccEC2Instance_EBSRootDeviceModifyIOPS_io1
--- PASS: TestAccEC2Instance_EBSRootDeviceModifyThroughput_gp3 (116.82s)
=== CONT  TestAccEC2Instance_iamInstanceProfilePath
--- PASS: TestAccEC2Instance_EBSRootDevice_modifyAll (116.15s)
=== CONT  TestAccEC2Instance_AssociatePublic_overridePrivate
--- PASS: TestAccEC2Instance_BlockDeviceTags_defaultTagsEBDOverlaps (313.73s)
=== CONT  TestAccEC2Instance_LaunchTemplate_overrideTemplate
--- PASS: TestAccEC2Instance_LaunchTemplate_spotAndStop (301.20s)
=== CONT  TestAccEC2Instance_LaunchTemplate_basic
--- PASS: TestAccEC2Instance_BlockDeviceTags_defaultTagsRBDOverlap (136.34s)
=== CONT  TestAccEC2Instance_IPv6_primaryDisable
--- PASS: TestAccEC2Instance_EBSRootDeviceModifyIOPS_io2 (105.60s)
=== CONT  TestAccEC2Instance_BlockDeviceTags_defaultTagsVolumeTags
--- PASS: TestAccEC2Instance_EBSRootDevice_modifyDeleteOnTermination (126.94s)
=== CONT  TestAccEC2Instance_BlockDeviceTags_ebsAndRoot
--- PASS: TestAccEC2Instance_LaunchTemplate_iamInstanceProfile (316.92s)
=== CONT  TestAccEC2Instance_BlockDeviceTags_attachedVolume
--- PASS: TestAccEC2Instance_forceNewAndTagsDrift (597.10s)
=== CONT  TestAccEC2Instance_BlockDeviceTags_volumeTags
--- PASS: TestAccEC2Instance_cpuOptionsCoreThreads (186.20s)
=== CONT  TestAccEC2Instance_LaunchTemplate_vpcSecurityGroup
--- PASS: TestAccEC2Instance_changeInstanceTypeReplace (642.19s)
=== CONT  TestAccEC2Instance_AssociatePublic_overridePublic
--- PASS: TestAccEC2Instance_primaryNetworkInterface (315.39s)
=== CONT  TestAccEC2Instance_AssociatePublic_explicitPrivate
--- PASS: TestAccEC2Instance_EBSRootDevice_multipleDynamicEBSBlockDevices (358.82s)
=== CONT  TestAccEC2Instance_AssociatePublic_explicitPublic
--- PASS: TestAccEC2Instance_BlockDeviceTags_defaultTagsVolumeTags (131.46s)
=== CONT  TestAccEC2Instance_IPv6AddressCount
--- PASS: TestAccEC2Instance_BlockDeviceTags_ebsAndRoot (124.71s)
=== CONT  TestAccEC2Instance_IPv6_supportAddressCountWithIPv4
--- PASS: TestAccEC2Instance_UserData_emptyStringToUnspecified (329.52s)
=== CONT  TestAccEC2Instance_placementGroup
--- PASS: TestAccEC2Instance_BlockDeviceTags_attachedVolume (143.25s)
=== CONT  TestAccEC2Instance_IPv6_primaryEnable
--- PASS: TestAccEC2Instance_changeInstanceTypeAndUserData (801.29s)
=== CONT  TestAccEC2Instance_networkInstanceSecurityGroups
--- PASS: TestAccEC2Instance_BlockDeviceTags_volumeTags (163.90s)
=== CONT  TestAccEC2Instance_networkInstanceRemovingAllSecurityGroups
--- PASS: TestAccEC2Instance_changeInstanceTypeAndUserDataBase64 (905.18s)
=== CONT  TestAccEC2Instance_UserData
--- PASS: TestAccEC2Instance_IPv6_primaryEnable (136.39s)
=== CONT  TestAccEC2Instance_IPv6_supportAddressCount
--- PASS: TestAccEC2Instance_IPv6AddressCount (159.29s)
=== CONT  TestAccEC2Instance_disableAPITerminationFinalTrue
--- PASS: TestAccEC2Instance_iamInstanceProfilePath (315.26s)
=== CONT  TestAccEC2Instance_outpost
    ec2_instance_test.go:1117: skipping since no Outposts found
--- SKIP: TestAccEC2Instance_outpost (0.44s)
=== CONT  TestAccEC2Instance_PrivateDNSNameOptions_configured
--- PASS: TestAccEC2Instance_LaunchTemplate_basic (311.19s)
=== CONT  TestAccEC2Instance_disableAPITerminationFinalFalse
--- PASS: TestAccEC2Instance_AssociatePublic_overridePrivate (323.56s)
=== CONT  TestAccEC2Instance_disableAPIStop
--- PASS: TestAccEC2Instance_LaunchTemplate_overrideTemplate (341.61s)
=== CONT  TestAccEC2Instance_placementPartitionNumber
--- PASS: TestAccEC2Instance_LaunchTemplate_updateTemplateVersion (631.10s)
=== CONT  TestAccEC2Instance_networkInstanceVPCSecurityGroupIDs
--- PASS: TestAccEC2Instance_EBSRootDeviceModifyIOPS_io1 (371.23s)
=== CONT  TestAccEC2Instance_dedicatedInstance
--- PASS: TestAccEC2Instance_AssociatePublic_overridePublic (323.13s)
=== CONT  TestAccEC2Instance_ipv6AddressCountAndSingleAddressCausesError
--- PASS: TestAccEC2Instance_ipv6AddressCountAndSingleAddressCausesError (0.68s)
=== CONT  TestAccEC2Instance_Empty_privateIP
--- PASS: TestAccEC2Instance_LaunchTemplate_vpcSecurityGroup (329.19s)
--- PASS: TestAccEC2Instance_disableAPIStop (95.00s)
--- PASS: TestAccEC2Instance_AssociatePublic_explicitPrivate (353.27s)
--- PASS: TestAccEC2Instance_UserData_stringToEncodedString (616.60s)
--- PASS: TestAccEC2Instance_disableAPITerminationFinalFalse (137.05s)
--- PASS: TestAccEC2Instance_placementGroup (312.85s)
--- PASS: TestAccEC2Instance_IPv6_supportAddressCountWithIPv4 (333.90s)
--- PASS: TestAccEC2Instance_AssociatePublic_explicitPublic (343.71s)
--- PASS: TestAccEC2Instance_UserData_update (687.85s)
--- PASS: TestAccEC2Instance_networkInstanceSecurityGroups (339.72s)
--- PASS: TestAccEC2Instance_networkInstanceRemovingAllSecurityGroups (331.91s)
--- PASS: TestAccEC2Instance_UserData (302.45s)
--- PASS: TestAccEC2Instance_IPv6_supportAddressCount (322.97s)
--- PASS: TestAccEC2Instance_disableAPITerminationFinalTrue (323.12s)
--- PASS: TestAccEC2Instance_IPv6_primaryDisable (649.12s)
--- PASS: TestAccEC2Instance_networkInstanceVPCSecurityGroupIDs (309.94s)
--- PASS: TestAccEC2Instance_placementPartitionNumber (322.97s)
--- PASS: TestAccEC2Instance_Empty_privateIP (313.04s)
--- PASS: TestAccEC2Instance_PrivateDNSNameOptions_configured (456.77s)
=== NAME  TestAccEC2Instance_dedicatedInstance
    acctest.go:1715: skipping test for aws/us-west-2: Error running apply: exit status 1
        
        Error: creating EC2 Instance: operation error EC2: RunInstances, exceeded maximum number of attempts, 25, https response error StatusCode: 500, RequestID: 904820a2-893c-4549-aa2d-a9d8f766d899, api error InsufficientInstanceCapacity: We currently do not have sufficient t3.small capacity in the Availability Zone you requested (us-west-2b). Our system will be working on provisioning additional capacity. You can currently get t3.small capacity by not specifying an Availability Zone in your request or choosing us-west-2a, us-west-2c.
        
          with aws_instance.test,
          on terraform_plugin_test.tf line 76, in resource "aws_instance" "test":
          76: resource "aws_instance" "test" {
        
--- SKIP: TestAccEC2Instance_dedicatedInstance (3261.44s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ec2	5249.723s

Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

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

LGTM 🚀.

% make testacc TESTARGS='-run=TestAccEC2Instance_IPv6\|TestAccEC2Instance_ipv6\|TestAccEC2Instance_basic\|TestAccVPCNetworkInterface_ipv6\|TestAccVPCNetworkInterface_basic' PKG=ec2 ACCTEST_PARALLELISM=4
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/ec2/... -v -count 1 -parallel 4  -run=TestAccEC2Instance_IPv6\|TestAccEC2Instance_ipv6\|TestAccEC2Instance_basic\|TestAccVPCNetworkInterface_ipv6\|TestAccVPCNetworkInterface_basic -timeout 360m
2024/12/12 09:03:20 Initializing Terraform AWS Provider...
=== RUN   TestAccEC2Instance_basic
=== PAUSE TestAccEC2Instance_basic
=== RUN   TestAccEC2Instance_IPv6_supportAddressCount
=== PAUSE TestAccEC2Instance_IPv6_supportAddressCount
=== RUN   TestAccEC2Instance_ipv6AddressCountAndSingleAddressCausesError
=== PAUSE TestAccEC2Instance_ipv6AddressCountAndSingleAddressCausesError
=== RUN   TestAccEC2Instance_IPv6_primaryEnable
=== PAUSE TestAccEC2Instance_IPv6_primaryEnable
=== RUN   TestAccEC2Instance_IPv6_primaryDisable
=== PAUSE TestAccEC2Instance_IPv6_primaryDisable
=== RUN   TestAccEC2Instance_IPv6_supportAddressCountWithIPv4
=== PAUSE TestAccEC2Instance_IPv6_supportAddressCountWithIPv4
=== RUN   TestAccEC2Instance_IPv6AddressCount
=== PAUSE TestAccEC2Instance_IPv6AddressCount
=== RUN   TestAccEC2Instance_basicWithSpot
=== PAUSE TestAccEC2Instance_basicWithSpot
=== RUN   TestAccVPCNetworkInterface_basic
=== PAUSE TestAccVPCNetworkInterface_basic
=== RUN   TestAccVPCNetworkInterface_ipv6
=== PAUSE TestAccVPCNetworkInterface_ipv6
=== RUN   TestAccVPCNetworkInterface_ipv6Primary
=== PAUSE TestAccVPCNetworkInterface_ipv6Primary
=== RUN   TestAccVPCNetworkInterface_ipv6PrimaryEnable
=== PAUSE TestAccVPCNetworkInterface_ipv6PrimaryEnable
=== RUN   TestAccVPCNetworkInterface_ipv6PrimaryDisable
=== PAUSE TestAccVPCNetworkInterface_ipv6PrimaryDisable
=== RUN   TestAccVPCNetworkInterface_ipv6Count
=== PAUSE TestAccVPCNetworkInterface_ipv6Count
=== CONT  TestAccEC2Instance_basic
=== CONT  TestAccEC2Instance_basicWithSpot
=== CONT  TestAccEC2Instance_IPv6_primaryDisable
=== CONT  TestAccEC2Instance_ipv6AddressCountAndSingleAddressCausesError
--- PASS: TestAccEC2Instance_ipv6AddressCountAndSingleAddressCausesError (1.64s)
=== CONT  TestAccEC2Instance_IPv6AddressCount
--- PASS: TestAccEC2Instance_basicWithSpot (157.47s)
=== CONT  TestAccEC2Instance_IPv6_supportAddressCountWithIPv4
--- PASS: TestAccEC2Instance_basic (161.37s)
=== CONT  TestAccVPCNetworkInterface_ipv6
--- PASS: TestAccVPCNetworkInterface_ipv6 (64.39s)
=== CONT  TestAccVPCNetworkInterface_ipv6Primary
--- PASS: TestAccEC2Instance_IPv6AddressCount (239.76s)
=== CONT  TestAccEC2Instance_IPv6_primaryEnable
--- PASS: TestAccEC2Instance_IPv6_primaryDisable (245.53s)
=== CONT  TestAccVPCNetworkInterface_ipv6PrimaryDisable
--- PASS: TestAccVPCNetworkInterface_ipv6Primary (40.96s)
=== CONT  TestAccVPCNetworkInterface_ipv6Count
--- PASS: TestAccEC2Instance_IPv6_supportAddressCountWithIPv4 (130.70s)
=== CONT  TestAccEC2Instance_IPv6_supportAddressCount
--- PASS: TestAccVPCNetworkInterface_ipv6PrimaryDisable (52.81s)
=== CONT  TestAccVPCNetworkInterface_basic
--- PASS: TestAccVPCNetworkInterface_basic (30.98s)
=== CONT  TestAccVPCNetworkInterface_ipv6PrimaryEnable
--- PASS: TestAccVPCNetworkInterface_ipv6Count (75.66s)
--- PASS: TestAccVPCNetworkInterface_ipv6PrimaryEnable (51.11s)
--- PASS: TestAccEC2Instance_IPv6_supportAddressCount (137.25s)
--- PASS: TestAccEC2Instance_IPv6_primaryEnable (195.02s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ec2	442.130s

@YakDriver YakDriver merged commit bad976f into hashicorp:main Dec 12, 2024
44 checks passed
@github-actions github-actions bot added this to the v5.81.0 milestone Dec 12, 2024
@github-actions github-actions bot removed the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Dec 12, 2024
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/ec2 Issues and PRs that pertain to the ec2 service. service/vpc Issues and PRs that pertain to the vpc service. size/M Managed by automation to categorize the size of a PR.
Projects
None yet
6 participants