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

Fix spot fleet request not terminating instances on destroy #17268

Merged

Conversation

pmalek
Copy link
Contributor

@pmalek pmalek commented Jan 24, 2021

Community Note

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

Closes #10083.


Spot fleet request doesn't terminate instances by default and it piggybacks on terminate_instances_with_expiration to decide whether to terminate instances when canceled/deleted.

This PR adds terminate_instances configuration option in the same way as ec2 fleet


TODO

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccXXX'

...

@pmalek pmalek requested a review from a team as a code owner January 24, 2021 11:56
@ghost ghost added size/XS Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. service/ec2 Issues and PRs that pertain to the ec2 service. labels Jan 24, 2021
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Jan 24, 2021
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome @pmalek 👋

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! 😃

@pmalek pmalek force-pushed the spot-fleet-request-terminate-instances branch from be645e1 to 98635c2 Compare January 24, 2021 12:10
@breathingdust breathingdust added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Sep 8, 2021
@zhelding
Copy link
Contributor

Pull request #21306 has significantly refactored the AWS Provider codebase. As a result, most PRs opened prior to the refactor now have merge conflicts that must be resolved before proceeding.

Specifically, PR #21306 relocated the code for all AWS resources and data sources from a single aws directory to a large number of separate directories in internal/service, each corresponding to a particular AWS service. This separation of code has also allowed for us to simplify the names of underlying functions -- while still avoiding namespace collisions.

We recognize that many pull requests have been open for some time without yet being addressed by our maintainers. Therefore, we want to make it clear that resolving these conflicts in no way affects the prioritization of a particular pull request. Once a pull request has been prioritized for review, the necessary changes will be made by a maintainer -- either directly or in collaboration with the pull request author.

For a more complete description of this refactor, including examples of how old filepaths and function names correspond to their new counterparts: please refer to issue #20000.

For a quick guide on how to amend your pull request to resolve the merge conflicts resulting from this refactor and bring it in line with our new code patterns: please refer to our Service Package Refactor Pull Request Guide.

Acceptance test output:

% make testacc TESTS=TestAccEC2SpotFleetRequest_basic PKG=ec2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 20 -run='TestAccEC2SpotFleetRequest_basic'  -timeout 180m
=== RUN   TestAccEC2SpotFleetRequest_basic
=== PAUSE TestAccEC2SpotFleetRequest_basic
=== CONT  TestAccEC2SpotFleetRequest_basic
--- PASS: TestAccEC2SpotFleetRequest_basic (145.37s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ec2	149.241s
% make testacc TESTS=TestAccEC2SpotFleetRequest_ PKG=ec2 ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 3 -run='TestAccEC2SpotFleetRequest_'  -timeout 180m
=== RUN   TestAccEC2SpotFleetRequest_basic
=== PAUSE TestAccEC2SpotFleetRequest_basic
=== RUN   TestAccEC2SpotFleetRequest_tags
=== PAUSE TestAccEC2SpotFleetRequest_tags
=== RUN   TestAccEC2SpotFleetRequest_associatePublicIPAddress
=== PAUSE TestAccEC2SpotFleetRequest_associatePublicIPAddress
=== RUN   TestAccEC2SpotFleetRequest_launchTemplate
=== PAUSE TestAccEC2SpotFleetRequest_launchTemplate
=== RUN   TestAccEC2SpotFleetRequest_LaunchTemplate_multiple
=== PAUSE TestAccEC2SpotFleetRequest_LaunchTemplate_multiple
=== RUN   TestAccEC2SpotFleetRequest_launchTemplateWithOverrides
=== PAUSE TestAccEC2SpotFleetRequest_launchTemplateWithOverrides
=== RUN   TestAccEC2SpotFleetRequest_launchTemplateToLaunchSpec
=== PAUSE TestAccEC2SpotFleetRequest_launchTemplateToLaunchSpec
=== RUN   TestAccEC2SpotFleetRequest_launchSpecToLaunchTemplate
=== PAUSE TestAccEC2SpotFleetRequest_launchSpecToLaunchTemplate
=== RUN   TestAccEC2SpotFleetRequest_onDemandTargetCapacity
=== PAUSE TestAccEC2SpotFleetRequest_onDemandTargetCapacity
=== RUN   TestAccEC2SpotFleetRequest_onDemandMaxTotalPrice
=== PAUSE TestAccEC2SpotFleetRequest_onDemandMaxTotalPrice
=== RUN   TestAccEC2SpotFleetRequest_onDemandAllocationStrategy
=== PAUSE TestAccEC2SpotFleetRequest_onDemandAllocationStrategy
=== RUN   TestAccEC2SpotFleetRequest_instanceInterruptionBehavior
=== PAUSE TestAccEC2SpotFleetRequest_instanceInterruptionBehavior
=== RUN   TestAccEC2SpotFleetRequest_fleetType
=== PAUSE TestAccEC2SpotFleetRequest_fleetType
=== RUN   TestAccEC2SpotFleetRequest_iamInstanceProfileARN
=== PAUSE TestAccEC2SpotFleetRequest_iamInstanceProfileARN
=== RUN   TestAccEC2SpotFleetRequest_changePriceForcesNewRequest
=== PAUSE TestAccEC2SpotFleetRequest_changePriceForcesNewRequest
=== RUN   TestAccEC2SpotFleetRequest_updateTargetCapacity
=== PAUSE TestAccEC2SpotFleetRequest_updateTargetCapacity
=== RUN   TestAccEC2SpotFleetRequest_updateExcessCapacityTerminationPolicy
=== PAUSE TestAccEC2SpotFleetRequest_updateExcessCapacityTerminationPolicy
=== RUN   TestAccEC2SpotFleetRequest_lowestPriceAzOrSubnetInRegion
=== PAUSE TestAccEC2SpotFleetRequest_lowestPriceAzOrSubnetInRegion
=== RUN   TestAccEC2SpotFleetRequest_lowestPriceAzInGivenList
=== PAUSE TestAccEC2SpotFleetRequest_lowestPriceAzInGivenList
=== RUN   TestAccEC2SpotFleetRequest_lowestPriceSubnetInGivenList
=== PAUSE TestAccEC2SpotFleetRequest_lowestPriceSubnetInGivenList
=== RUN   TestAccEC2SpotFleetRequest_multipleInstanceTypesInSameAz
=== PAUSE TestAccEC2SpotFleetRequest_multipleInstanceTypesInSameAz
=== RUN   TestAccEC2SpotFleetRequest_multipleInstanceTypesInSameSubnet
=== PAUSE TestAccEC2SpotFleetRequest_multipleInstanceTypesInSameSubnet
=== RUN   TestAccEC2SpotFleetRequest_overridingSpotPrice
=== PAUSE TestAccEC2SpotFleetRequest_overridingSpotPrice
=== RUN   TestAccEC2SpotFleetRequest_withoutSpotPrice
=== PAUSE TestAccEC2SpotFleetRequest_withoutSpotPrice
=== RUN   TestAccEC2SpotFleetRequest_diversifiedAllocation
=== PAUSE TestAccEC2SpotFleetRequest_diversifiedAllocation
=== RUN   TestAccEC2SpotFleetRequest_multipleInstancePools
=== PAUSE TestAccEC2SpotFleetRequest_multipleInstancePools
=== RUN   TestAccEC2SpotFleetRequest_withWeightedCapacity
=== PAUSE TestAccEC2SpotFleetRequest_withWeightedCapacity
=== RUN   TestAccEC2SpotFleetRequest_withEBSDisk
=== PAUSE TestAccEC2SpotFleetRequest_withEBSDisk
=== RUN   TestAccEC2SpotFleetRequest_LaunchSpecificationEBSBlockDevice_kmsKeyID
=== PAUSE TestAccEC2SpotFleetRequest_LaunchSpecificationEBSBlockDevice_kmsKeyID
=== RUN   TestAccEC2SpotFleetRequest_LaunchSpecificationRootBlockDevice_kmsKeyID
=== PAUSE TestAccEC2SpotFleetRequest_LaunchSpecificationRootBlockDevice_kmsKeyID
=== RUN   TestAccEC2SpotFleetRequest_LaunchSpecification_ebsBlockDeviceGP3
=== PAUSE TestAccEC2SpotFleetRequest_LaunchSpecification_ebsBlockDeviceGP3
=== RUN   TestAccEC2SpotFleetRequest_LaunchSpecification_rootBlockDeviceGP3
=== PAUSE TestAccEC2SpotFleetRequest_LaunchSpecification_rootBlockDeviceGP3
=== RUN   TestAccEC2SpotFleetRequest_withTags
=== PAUSE TestAccEC2SpotFleetRequest_withTags
=== RUN   TestAccEC2SpotFleetRequest_placementTenancyAndGroup
=== PAUSE TestAccEC2SpotFleetRequest_placementTenancyAndGroup
=== RUN   TestAccEC2SpotFleetRequest_withELBs
=== PAUSE TestAccEC2SpotFleetRequest_withELBs
=== RUN   TestAccEC2SpotFleetRequest_withTargetGroups
=== PAUSE TestAccEC2SpotFleetRequest_withTargetGroups
=== RUN   TestAccEC2SpotFleetRequest_Zero_capacity
=== PAUSE TestAccEC2SpotFleetRequest_Zero_capacity
=== RUN   TestAccEC2SpotFleetRequest_capacityRebalance
=== PAUSE TestAccEC2SpotFleetRequest_capacityRebalance
=== RUN   TestAccEC2SpotFleetRequest_withInstanceStoreAMI
    acctest.go:68: Test fails due to test harness constraints
--- SKIP: TestAccEC2SpotFleetRequest_withInstanceStoreAMI (0.00s)
=== RUN   TestAccEC2SpotFleetRequest_disappears
=== PAUSE TestAccEC2SpotFleetRequest_disappears
=== CONT  TestAccEC2SpotFleetRequest_basic
=== CONT  TestAccEC2SpotFleetRequest_multipleInstanceTypesInSameAz
=== CONT  TestAccEC2SpotFleetRequest_LaunchSpecification_ebsBlockDeviceGP3
--- PASS: TestAccEC2SpotFleetRequest_LaunchSpecification_ebsBlockDeviceGP3 (150.58s)
=== CONT  TestAccEC2SpotFleetRequest_multipleInstancePools
--- PASS: TestAccEC2SpotFleetRequest_multipleInstanceTypesInSameAz (151.00s)
=== CONT  TestAccEC2SpotFleetRequest_LaunchSpecificationRootBlockDevice_kmsKeyID
--- PASS: TestAccEC2SpotFleetRequest_basic (151.12s)
=== CONT  TestAccEC2SpotFleetRequest_LaunchSpecificationEBSBlockDevice_kmsKeyID
--- PASS: TestAccEC2SpotFleetRequest_LaunchSpecificationEBSBlockDevice_kmsKeyID (139.84s)
=== CONT  TestAccEC2SpotFleetRequest_withEBSDisk
--- PASS: TestAccEC2SpotFleetRequest_multipleInstancePools (145.69s)
=== CONT  TestAccEC2SpotFleetRequest_withWeightedCapacity
--- PASS: TestAccEC2SpotFleetRequest_LaunchSpecificationRootBlockDevice_kmsKeyID (146.69s)
=== CONT  TestAccEC2SpotFleetRequest_withTargetGroups
--- PASS: TestAccEC2SpotFleetRequest_withEBSDisk (143.64s)
=== CONT  TestAccEC2SpotFleetRequest_disappears
--- PASS: TestAccEC2SpotFleetRequest_withWeightedCapacity (202.14s)
=== CONT  TestAccEC2SpotFleetRequest_capacityRebalance
--- PASS: TestAccEC2SpotFleetRequest_disappears (143.29s)
=== CONT  TestAccEC2SpotFleetRequest_Zero_capacity
--- PASS: TestAccEC2SpotFleetRequest_capacityRebalance (143.96s)
=== CONT  TestAccEC2SpotFleetRequest_onDemandAllocationStrategy
--- PASS: TestAccEC2SpotFleetRequest_withTargetGroups (349.80s)
=== CONT  TestAccEC2SpotFleetRequest_lowestPriceSubnetInGivenList
--- PASS: TestAccEC2SpotFleetRequest_onDemandAllocationStrategy (140.93s)
=== CONT  TestAccEC2SpotFleetRequest_lowestPriceAzInGivenList
--- PASS: TestAccEC2SpotFleetRequest_lowestPriceSubnetInGivenList (172.01s)
=== CONT  TestAccEC2SpotFleetRequest_lowestPriceAzOrSubnetInRegion
--- PASS: TestAccEC2SpotFleetRequest_Zero_capacity (265.30s)
=== CONT  TestAccEC2SpotFleetRequest_updateExcessCapacityTerminationPolicy
--- PASS: TestAccEC2SpotFleetRequest_lowestPriceAzInGivenList (145.30s)
=== CONT  TestAccEC2SpotFleetRequest_updateTargetCapacity
--- PASS: TestAccEC2SpotFleetRequest_lowestPriceAzOrSubnetInRegion (143.66s)
=== CONT  TestAccEC2SpotFleetRequest_changePriceForcesNewRequest
--- PASS: TestAccEC2SpotFleetRequest_updateExcessCapacityTerminationPolicy (274.89s)
=== CONT  TestAccEC2SpotFleetRequest_iamInstanceProfileARN
--- PASS: TestAccEC2SpotFleetRequest_changePriceForcesNewRequest (270.31s)
=== CONT  TestAccEC2SpotFleetRequest_fleetType
--- PASS: TestAccEC2SpotFleetRequest_iamInstanceProfileARN (145.56s)
=== CONT  TestAccEC2SpotFleetRequest_instanceInterruptionBehavior
--- PASS: TestAccEC2SpotFleetRequest_updateTargetCapacity (404.64s)
=== CONT  TestAccEC2SpotFleetRequest_overridingSpotPrice
--- PASS: TestAccEC2SpotFleetRequest_fleetType (142.63s)
=== CONT  TestAccEC2SpotFleetRequest_withoutSpotPrice
--- PASS: TestAccEC2SpotFleetRequest_instanceInterruptionBehavior (143.56s)
=== CONT  TestAccEC2SpotFleetRequest_multipleInstanceTypesInSameSubnet
--- PASS: TestAccEC2SpotFleetRequest_overridingSpotPrice (149.11s)
=== CONT  TestAccEC2SpotFleetRequest_diversifiedAllocation
--- PASS: TestAccEC2SpotFleetRequest_withoutSpotPrice (146.03s)
=== CONT  TestAccEC2SpotFleetRequest_launchTemplate
--- PASS: TestAccEC2SpotFleetRequest_multipleInstanceTypesInSameSubnet (177.66s)
=== CONT  TestAccEC2SpotFleetRequest_LaunchTemplate_multiple
--- PASS: TestAccEC2SpotFleetRequest_diversifiedAllocation (148.24s)
=== CONT  TestAccEC2SpotFleetRequest_onDemandMaxTotalPrice
--- PASS: TestAccEC2SpotFleetRequest_launchTemplate (143.43s)
=== CONT  TestAccEC2SpotFleetRequest_tags
--- PASS: TestAccEC2SpotFleetRequest_LaunchTemplate_multiple (140.39s)
=== CONT  TestAccEC2SpotFleetRequest_launchTemplateWithOverrides
--- PASS: TestAccEC2SpotFleetRequest_onDemandMaxTotalPrice (142.92s)
=== CONT  TestAccEC2SpotFleetRequest_placementTenancyAndGroup
--- PASS: TestAccEC2SpotFleetRequest_placementTenancyAndGroup (64.08s)
=== CONT  TestAccEC2SpotFleetRequest_withELBs
--- PASS: TestAccEC2SpotFleetRequest_launchTemplateWithOverrides (140.18s)
=== CONT  TestAccEC2SpotFleetRequest_associatePublicIPAddress
--- PASS: TestAccEC2SpotFleetRequest_tags (216.52s)
=== CONT  TestAccEC2SpotFleetRequest_launchTemplateToLaunchSpec
--- PASS: TestAccEC2SpotFleetRequest_associatePublicIPAddress (140.94s)
=== CONT  TestAccEC2SpotFleetRequest_withTags
--- PASS: TestAccEC2SpotFleetRequest_withELBs (171.62s)
=== CONT  TestAccEC2SpotFleetRequest_onDemandTargetCapacity
--- PASS: TestAccEC2SpotFleetRequest_withTags (143.03s)
=== CONT  TestAccEC2SpotFleetRequest_launchSpecToLaunchTemplate
--- PASS: TestAccEC2SpotFleetRequest_launchTemplateToLaunchSpec (272.08s)
=== CONT  TestAccEC2SpotFleetRequest_LaunchSpecification_rootBlockDeviceGP3
--- PASS: TestAccEC2SpotFleetRequest_onDemandTargetCapacity (279.38s)
--- PASS: TestAccEC2SpotFleetRequest_LaunchSpecification_rootBlockDeviceGP3 (142.51s)
--- PASS: TestAccEC2SpotFleetRequest_launchSpecToLaunchTemplate (267.95s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ec2	2421.505s
Acceptance test output:

% make testacc TESTS=TestAccEC2SpotFleetRequest_basic PKG=ec2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 20 -run='TestAccEC2SpotFleetRequest_basic'  -timeout 180m
=== RUN   TestAccEC2SpotFleetRequest_basic
=== PAUSE TestAccEC2SpotFleetRequest_basic
=== CONT  TestAccEC2SpotFleetRequest_basic
--- PASS: TestAccEC2SpotFleetRequest_basic (149.51s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ec2	156.275s
Acceptance test output:

% make testacc TESTS=TestAccEC2SpotFleetRequest_basic PKG=ec2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 20 -run='TestAccEC2SpotFleetRequest_basic'  -timeout 180m
=== RUN   TestAccEC2SpotFleetRequest_basic
=== PAUSE TestAccEC2SpotFleetRequest_basic
=== CONT  TestAccEC2SpotFleetRequest_basic
--- PASS: TestAccEC2SpotFleetRequest_basic (149.41s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ec2	153.273s
Acceptance test output:

% make testacc TESTARGS='-run=TestAccEC2SpotFleetRequest_basic\|TestAccEC2SpotFleetRequest_noTerminateInstancesWithExpiration' PKG=ec2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 20  -run=TestAccEC2SpotFleetRequest_basic\|TestAccEC2SpotFleetRequest_noTerminateInstancesWithExpiration -timeout 180m
=== RUN   TestAccEC2SpotFleetRequest_basic
=== PAUSE TestAccEC2SpotFleetRequest_basic
=== RUN   TestAccEC2SpotFleetRequest_noTerminateInstancesWithExpiration
=== PAUSE TestAccEC2SpotFleetRequest_noTerminateInstancesWithExpiration
=== CONT  TestAccEC2SpotFleetRequest_basic
=== CONT  TestAccEC2SpotFleetRequest_noTerminateInstancesWithExpiration
--- PASS: TestAccEC2SpotFleetRequest_basic (144.54s)
--- PASS: TestAccEC2SpotFleetRequest_noTerminateInstancesWithExpiration (144.58s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ec2	148.632s
@ewbankkit ewbankkit changed the title [WIP] Fix spot fleet request not terminating instances on destroy Fix spot fleet request not terminating instances on destroy Apr 25, 2022
@github-actions github-actions bot added size/XL Managed by automation to categorize the size of a PR. generators Relates to code generators. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. and removed size/XS Managed by automation to categorize the size of a PR. labels Apr 25, 2022
@ewbankkit
Copy link
Contributor

@pmalek Thanks for the contribution 🎉 👏.
I tweaked this slightly to name the new argument terminate_instances_on_delete and if it is not specified use the value specified in the terminate_instances_with_expiration argument (this is necessary for backwards compatibility).

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 TESTS=TestAccEC2SpotFleetRequest_ PKG=ec2 ACCTEST_PARALLELISM=3 
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 3 -run='TestAccEC2SpotFleetRequest_'  -timeout 180m
=== RUN   TestAccEC2SpotFleetRequest_basic
=== PAUSE TestAccEC2SpotFleetRequest_basic
=== RUN   TestAccEC2SpotFleetRequest_disappears
=== PAUSE TestAccEC2SpotFleetRequest_disappears
=== RUN   TestAccEC2SpotFleetRequest_tags
=== PAUSE TestAccEC2SpotFleetRequest_tags
=== RUN   TestAccEC2SpotFleetRequest_associatePublicIPAddress
=== PAUSE TestAccEC2SpotFleetRequest_associatePublicIPAddress
=== RUN   TestAccEC2SpotFleetRequest_launchTemplate
=== PAUSE TestAccEC2SpotFleetRequest_launchTemplate
=== RUN   TestAccEC2SpotFleetRequest_LaunchTemplate_multiple
=== PAUSE TestAccEC2SpotFleetRequest_LaunchTemplate_multiple
=== RUN   TestAccEC2SpotFleetRequest_launchTemplateWithOverrides
=== PAUSE TestAccEC2SpotFleetRequest_launchTemplateWithOverrides
=== RUN   TestAccEC2SpotFleetRequest_launchTemplateToLaunchSpec
=== PAUSE TestAccEC2SpotFleetRequest_launchTemplateToLaunchSpec
=== RUN   TestAccEC2SpotFleetRequest_launchSpecToLaunchTemplate
=== PAUSE TestAccEC2SpotFleetRequest_launchSpecToLaunchTemplate
=== RUN   TestAccEC2SpotFleetRequest_onDemandTargetCapacity
=== PAUSE TestAccEC2SpotFleetRequest_onDemandTargetCapacity
=== RUN   TestAccEC2SpotFleetRequest_onDemandMaxTotalPrice
=== PAUSE TestAccEC2SpotFleetRequest_onDemandMaxTotalPrice
=== RUN   TestAccEC2SpotFleetRequest_onDemandAllocationStrategy
=== PAUSE TestAccEC2SpotFleetRequest_onDemandAllocationStrategy
=== RUN   TestAccEC2SpotFleetRequest_instanceInterruptionBehavior
=== PAUSE TestAccEC2SpotFleetRequest_instanceInterruptionBehavior
=== RUN   TestAccEC2SpotFleetRequest_fleetType
=== PAUSE TestAccEC2SpotFleetRequest_fleetType
=== RUN   TestAccEC2SpotFleetRequest_iamInstanceProfileARN
=== PAUSE TestAccEC2SpotFleetRequest_iamInstanceProfileARN
=== RUN   TestAccEC2SpotFleetRequest_changePriceForcesNewRequest
=== PAUSE TestAccEC2SpotFleetRequest_changePriceForcesNewRequest
=== RUN   TestAccEC2SpotFleetRequest_updateTargetCapacity
=== PAUSE TestAccEC2SpotFleetRequest_updateTargetCapacity
=== RUN   TestAccEC2SpotFleetRequest_updateExcessCapacityTerminationPolicy
=== PAUSE TestAccEC2SpotFleetRequest_updateExcessCapacityTerminationPolicy
=== RUN   TestAccEC2SpotFleetRequest_lowestPriceAzOrSubnetInRegion
=== PAUSE TestAccEC2SpotFleetRequest_lowestPriceAzOrSubnetInRegion
=== RUN   TestAccEC2SpotFleetRequest_lowestPriceAzInGivenList
=== PAUSE TestAccEC2SpotFleetRequest_lowestPriceAzInGivenList
=== RUN   TestAccEC2SpotFleetRequest_lowestPriceSubnetInGivenList
=== PAUSE TestAccEC2SpotFleetRequest_lowestPriceSubnetInGivenList
=== RUN   TestAccEC2SpotFleetRequest_multipleInstanceTypesInSameAz
=== PAUSE TestAccEC2SpotFleetRequest_multipleInstanceTypesInSameAz
=== RUN   TestAccEC2SpotFleetRequest_multipleInstanceTypesInSameSubnet
=== PAUSE TestAccEC2SpotFleetRequest_multipleInstanceTypesInSameSubnet
=== RUN   TestAccEC2SpotFleetRequest_overridingSpotPrice
=== PAUSE TestAccEC2SpotFleetRequest_overridingSpotPrice
=== RUN   TestAccEC2SpotFleetRequest_withoutSpotPrice
=== PAUSE TestAccEC2SpotFleetRequest_withoutSpotPrice
=== RUN   TestAccEC2SpotFleetRequest_diversifiedAllocation
=== PAUSE TestAccEC2SpotFleetRequest_diversifiedAllocation
=== RUN   TestAccEC2SpotFleetRequest_multipleInstancePools
=== PAUSE TestAccEC2SpotFleetRequest_multipleInstancePools
=== RUN   TestAccEC2SpotFleetRequest_withWeightedCapacity
=== PAUSE TestAccEC2SpotFleetRequest_withWeightedCapacity
=== RUN   TestAccEC2SpotFleetRequest_withEBSDisk
=== PAUSE TestAccEC2SpotFleetRequest_withEBSDisk
=== RUN   TestAccEC2SpotFleetRequest_LaunchSpecificationEBSBlockDevice_kmsKeyID
=== PAUSE TestAccEC2SpotFleetRequest_LaunchSpecificationEBSBlockDevice_kmsKeyID
=== RUN   TestAccEC2SpotFleetRequest_LaunchSpecificationRootBlockDevice_kmsKeyID
=== PAUSE TestAccEC2SpotFleetRequest_LaunchSpecificationRootBlockDevice_kmsKeyID
=== RUN   TestAccEC2SpotFleetRequest_LaunchSpecification_ebsBlockDeviceGP3
=== PAUSE TestAccEC2SpotFleetRequest_LaunchSpecification_ebsBlockDeviceGP3
=== RUN   TestAccEC2SpotFleetRequest_LaunchSpecification_rootBlockDeviceGP3
=== PAUSE TestAccEC2SpotFleetRequest_LaunchSpecification_rootBlockDeviceGP3
=== RUN   TestAccEC2SpotFleetRequest_withTags
=== PAUSE TestAccEC2SpotFleetRequest_withTags
=== RUN   TestAccEC2SpotFleetRequest_placementTenancyAndGroup
=== PAUSE TestAccEC2SpotFleetRequest_placementTenancyAndGroup
=== RUN   TestAccEC2SpotFleetRequest_withELBs
=== PAUSE TestAccEC2SpotFleetRequest_withELBs
=== RUN   TestAccEC2SpotFleetRequest_withTargetGroups
=== PAUSE TestAccEC2SpotFleetRequest_withTargetGroups
=== RUN   TestAccEC2SpotFleetRequest_Zero_capacity
=== PAUSE TestAccEC2SpotFleetRequest_Zero_capacity
=== RUN   TestAccEC2SpotFleetRequest_capacityRebalance
=== PAUSE TestAccEC2SpotFleetRequest_capacityRebalance
=== RUN   TestAccEC2SpotFleetRequest_withInstanceStoreAMI
    acctest.go:68: Test fails due to test harness constraints
--- SKIP: TestAccEC2SpotFleetRequest_withInstanceStoreAMI (0.00s)
=== RUN   TestAccEC2SpotFleetRequest_noTerminateInstancesWithExpiration
=== PAUSE TestAccEC2SpotFleetRequest_noTerminateInstancesWithExpiration
=== CONT  TestAccEC2SpotFleetRequest_basic
=== CONT  TestAccEC2SpotFleetRequest_lowestPriceSubnetInGivenList
=== CONT  TestAccEC2SpotFleetRequest_LaunchSpecificationRootBlockDevice_kmsKeyID
--- PASS: TestAccEC2SpotFleetRequest_LaunchSpecificationRootBlockDevice_kmsKeyID (142.88s)
=== CONT  TestAccEC2SpotFleetRequest_noTerminateInstancesWithExpiration
--- PASS: TestAccEC2SpotFleetRequest_basic (154.61s)
=== CONT  TestAccEC2SpotFleetRequest_capacityRebalance
--- PASS: TestAccEC2SpotFleetRequest_lowestPriceSubnetInGivenList (183.29s)
=== CONT  TestAccEC2SpotFleetRequest_Zero_capacity
--- PASS: TestAccEC2SpotFleetRequest_noTerminateInstancesWithExpiration (148.03s)
=== CONT  TestAccEC2SpotFleetRequest_withTargetGroups
--- PASS: TestAccEC2SpotFleetRequest_capacityRebalance (144.17s)
=== CONT  TestAccEC2SpotFleetRequest_withELBs
--- PASS: TestAccEC2SpotFleetRequest_Zero_capacity (272.88s)
=== CONT  TestAccEC2SpotFleetRequest_placementTenancyAndGroup
--- PASS: TestAccEC2SpotFleetRequest_withELBs (175.97s)
=== CONT  TestAccEC2SpotFleetRequest_withTags
--- PASS: TestAccEC2SpotFleetRequest_placementTenancyAndGroup (84.73s)
=== CONT  TestAccEC2SpotFleetRequest_LaunchSpecification_rootBlockDeviceGP3
--- PASS: TestAccEC2SpotFleetRequest_withTags (152.79s)
=== CONT  TestAccEC2SpotFleetRequest_LaunchSpecification_ebsBlockDeviceGP3
--- PASS: TestAccEC2SpotFleetRequest_withTargetGroups (367.67s)
=== CONT  TestAccEC2SpotFleetRequest_diversifiedAllocation
--- PASS: TestAccEC2SpotFleetRequest_LaunchSpecification_rootBlockDeviceGP3 (149.69s)
=== CONT  TestAccEC2SpotFleetRequest_LaunchSpecificationEBSBlockDevice_kmsKeyID
--- PASS: TestAccEC2SpotFleetRequest_LaunchSpecification_ebsBlockDeviceGP3 (144.75s)
=== CONT  TestAccEC2SpotFleetRequest_withEBSDisk
--- PASS: TestAccEC2SpotFleetRequest_diversifiedAllocation (147.98s)
=== CONT  TestAccEC2SpotFleetRequest_overridingSpotPrice
--- PASS: TestAccEC2SpotFleetRequest_LaunchSpecificationEBSBlockDevice_kmsKeyID (151.14s)
=== CONT  TestAccEC2SpotFleetRequest_withWeightedCapacity
--- PASS: TestAccEC2SpotFleetRequest_withEBSDisk (142.36s)
=== CONT  TestAccEC2SpotFleetRequest_withoutSpotPrice
--- PASS: TestAccEC2SpotFleetRequest_overridingSpotPrice (149.62s)
=== CONT  TestAccEC2SpotFleetRequest_multipleInstancePools
--- PASS: TestAccEC2SpotFleetRequest_withWeightedCapacity (203.23s)
=== CONT  TestAccEC2SpotFleetRequest_multipleInstanceTypesInSameSubnet
--- PASS: TestAccEC2SpotFleetRequest_withoutSpotPrice (145.73s)
=== CONT  TestAccEC2SpotFleetRequest_multipleInstanceTypesInSameAz
--- PASS: TestAccEC2SpotFleetRequest_multipleInstancePools (143.54s)
=== CONT  TestAccEC2SpotFleetRequest_onDemandMaxTotalPrice
--- PASS: TestAccEC2SpotFleetRequest_multipleInstanceTypesInSameAz (142.66s)
=== CONT  TestAccEC2SpotFleetRequest_changePriceForcesNewRequest
--- PASS: TestAccEC2SpotFleetRequest_multipleInstanceTypesInSameSubnet (177.72s)
=== CONT  TestAccEC2SpotFleetRequest_iamInstanceProfileARN
--- PASS: TestAccEC2SpotFleetRequest_onDemandMaxTotalPrice (154.05s)
=== CONT  TestAccEC2SpotFleetRequest_lowestPriceAzInGivenList
--- PASS: TestAccEC2SpotFleetRequest_iamInstanceProfileARN (147.43s)
=== CONT  TestAccEC2SpotFleetRequest_fleetType
--- PASS: TestAccEC2SpotFleetRequest_lowestPriceAzInGivenList (149.53s)
=== CONT  TestAccEC2SpotFleetRequest_instanceInterruptionBehavior
--- PASS: TestAccEC2SpotFleetRequest_changePriceForcesNewRequest (280.83s)
=== CONT  TestAccEC2SpotFleetRequest_onDemandAllocationStrategy
--- PASS: TestAccEC2SpotFleetRequest_fleetType (142.82s)
=== CONT  TestAccEC2SpotFleetRequest_updateExcessCapacityTerminationPolicy
--- PASS: TestAccEC2SpotFleetRequest_instanceInterruptionBehavior (151.00s)
=== CONT  TestAccEC2SpotFleetRequest_updateTargetCapacity
--- PASS: TestAccEC2SpotFleetRequest_onDemandAllocationStrategy (153.21s)
=== CONT  TestAccEC2SpotFleetRequest_lowestPriceAzOrSubnetInRegion
--- PASS: TestAccEC2SpotFleetRequest_lowestPriceAzOrSubnetInRegion (142.49s)
=== CONT  TestAccEC2SpotFleetRequest_launchSpecToLaunchTemplate
--- PASS: TestAccEC2SpotFleetRequest_updateExcessCapacityTerminationPolicy (272.77s)
=== CONT  TestAccEC2SpotFleetRequest_launchTemplateToLaunchSpec
--- PASS: TestAccEC2SpotFleetRequest_updateTargetCapacity (408.02s)
=== CONT  TestAccEC2SpotFleetRequest_onDemandTargetCapacity
--- PASS: TestAccEC2SpotFleetRequest_launchSpecToLaunchTemplate (275.59s)
=== CONT  TestAccEC2SpotFleetRequest_associatePublicIPAddress
--- PASS: TestAccEC2SpotFleetRequest_launchTemplateToLaunchSpec (272.77s)
=== CONT  TestAccEC2SpotFleetRequest_tags
--- PASS: TestAccEC2SpotFleetRequest_associatePublicIPAddress (142.77s)
=== CONT  TestAccEC2SpotFleetRequest_launchTemplate
--- PASS: TestAccEC2SpotFleetRequest_onDemandTargetCapacity (319.37s)
=== CONT  TestAccEC2SpotFleetRequest_LaunchTemplate_multiple
--- PASS: TestAccEC2SpotFleetRequest_tags (223.61s)
=== CONT  TestAccEC2SpotFleetRequest_disappears
--- PASS: TestAccEC2SpotFleetRequest_launchTemplate (143.90s)
=== CONT  TestAccEC2SpotFleetRequest_launchTemplateWithOverrides
--- PASS: TestAccEC2SpotFleetRequest_disappears (139.57s)
--- PASS: TestAccEC2SpotFleetRequest_LaunchTemplate_multiple (141.57s)
--- PASS: TestAccEC2SpotFleetRequest_launchTemplateWithOverrides (143.41s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ec2	2489.490s

@ewbankkit ewbankkit merged commit 032bf0c into hashicorp:main Apr 25, 2022
@github-actions github-actions bot added this to the v4.12.0 milestone Apr 25, 2022
@github-actions
Copy link

This functionality has been released in v4.12.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. documentation Introduces or discusses updates to documentation. generators Relates to code generators. service/ec2 Issues and PRs that pertain to the ec2 service. size/XL Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spot fleet request doesn't kill spawned instances on a destroy
4 participants