-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spot Fleet Launch Template Support #12732
Spot Fleet Launch Template Support #12732
Conversation
8fd3e4d
to
b802b46
Compare
Thanks a lot for the PR! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey there, @DrFaust92 -- first of all, thank you so much for rebasing and tackling this. 🥇 This is a very complex implementation (no fault of your own) and this resource logic is pretty dated in some parts, so kudos for shimming this in here. I left some initial feedback below on things I noticed from a first pass of looking over the code. Please let me know if you have questions and ping me when this is ready for another review, I'll try to provide feedback cycles ASAP. Thanks again.
}, | ||
}, | ||
}, | ||
Set: hashLaunchTemplateOverrides, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Open question -- does this work without the Set
function? We should prefer to omit it, unless the resource behaviors explicitly require it. 👍
1bcbe68
to
e429f77
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shaping up nicely! This round is mostly just fixing up the Terraform state setting and test naming randomization. After this we should be just on little fixes to finalize it. 🎉
@bflad , i addressed the changes and running some more tests and check regarding dropping the |
launch template tests are now passing
with the exclusion of |
801e5b0
to
1396b55
Compare
We can skip it for now since its just validating plan-time behaviors that are tested in the Terraform Plugin SDK. For future reference when testing with I'll drop it and merge this when CI passes after that, since I've verified the rest of the acceptance testing passes as expected. 👍 |
…leetRequest_launchTemplateConflictLaunchSpecification
…m GitHub suggested changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @DrFaust92 🚀
Output from acceptance testing:
--- PASS: TestAccAWSSpotFleetRequest_associatePublicIpAddress (416.10s)
--- PASS: TestAccAWSSpotFleetRequest_basic (346.62s)
--- PASS: TestAccAWSSpotFleetRequest_changePriceForcesNewRequest (612.73s)
--- PASS: TestAccAWSSpotFleetRequest_disappears (229.25s)
--- PASS: TestAccAWSSpotFleetRequest_diversifiedAllocation (351.50s)
--- PASS: TestAccAWSSpotFleetRequest_fleetType (286.87s)
--- PASS: TestAccAWSSpotFleetRequest_iamInstanceProfileArn (285.22s)
--- PASS: TestAccAWSSpotFleetRequest_instanceInterruptionBehavior (284.16s)
--- PASS: TestAccAWSSpotFleetRequest_LaunchSpecification_EbsBlockDevice_KmsKeyId (142.74s)
--- PASS: TestAccAWSSpotFleetRequest_LaunchSpecification_RootBlockDevice_KmsKeyId (145.99s)
--- PASS: TestAccAWSSpotFleetRequest_launchSpecToLaunchTemplate (540.97s)
--- PASS: TestAccAWSSpotFleetRequest_launchTemplate (284.34s)
--- PASS: TestAccAWSSpotFleetRequest_launchTemplate_multiple (213.22s)
--- PASS: TestAccAWSSpotFleetRequest_launchTemplateToLaunchSpec (542.07s)
--- PASS: TestAccAWSSpotFleetRequest_launchTemplateWithOverrides (216.46s)
--- PASS: TestAccAWSSpotFleetRequest_lowestPriceAzInGivenList (273.30s)
--- PASS: TestAccAWSSpotFleetRequest_lowestPriceAzOrSubnetInRegion (345.74s)
--- PASS: TestAccAWSSpotFleetRequest_lowestPriceSubnetInGivenList (285.52s)
--- PASS: TestAccAWSSpotFleetRequest_multipleInstancePools (351.19s)
--- PASS: TestAccAWSSpotFleetRequest_multipleInstanceTypesInSameAz (337.09s)
--- PASS: TestAccAWSSpotFleetRequest_multipleInstanceTypesInSameSubnet (216.98s)
--- PASS: TestAccAWSSpotFleetRequest_overriddingSpotPrice (320.64s)
--- PASS: TestAccAWSSpotFleetRequest_placementTenancyAndGroup (63.07s)
--- PASS: TestAccAWSSpotFleetRequest_tags (354.51s)
--- PASS: TestAccAWSSpotFleetRequest_updateExcessCapacityTerminationPolicy (542.49s)
--- PASS: TestAccAWSSpotFleetRequest_updateTargetCapacity (828.53s)
--- PASS: TestAccAWSSpotFleetRequest_withEBSDisk (279.53s)
--- PASS: TestAccAWSSpotFleetRequest_WithELBs (268.50s)
--- PASS: TestAccAWSSpotFleetRequest_withoutSpotPrice (350.86s)
--- PASS: TestAccAWSSpotFleetRequest_withTags (282.52s)
--- PASS: TestAccAWSSpotFleetRequest_WithTargetGroups (410.53s)
--- PASS: TestAccAWSSpotFleetRequest_withWeightedCapacity (289.97s)
This has been released in version 2.60.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
…2732) Output from acceptance testing: ``` --- PASS: TestAccAWSSpotFleetRequest_associatePublicIpAddress (416.10s) --- PASS: TestAccAWSSpotFleetRequest_basic (346.62s) --- PASS: TestAccAWSSpotFleetRequest_changePriceForcesNewRequest (612.73s) --- PASS: TestAccAWSSpotFleetRequest_disappears (229.25s) --- PASS: TestAccAWSSpotFleetRequest_diversifiedAllocation (351.50s) --- PASS: TestAccAWSSpotFleetRequest_fleetType (286.87s) --- PASS: TestAccAWSSpotFleetRequest_iamInstanceProfileArn (285.22s) --- PASS: TestAccAWSSpotFleetRequest_instanceInterruptionBehavior (284.16s) --- PASS: TestAccAWSSpotFleetRequest_LaunchSpecification_EbsBlockDevice_KmsKeyId (142.74s) --- PASS: TestAccAWSSpotFleetRequest_LaunchSpecification_RootBlockDevice_KmsKeyId (145.99s) --- PASS: TestAccAWSSpotFleetRequest_launchSpecToLaunchTemplate (540.97s) --- PASS: TestAccAWSSpotFleetRequest_launchTemplate (284.34s) --- PASS: TestAccAWSSpotFleetRequest_launchTemplate_multiple (213.22s) --- PASS: TestAccAWSSpotFleetRequest_launchTemplateToLaunchSpec (542.07s) --- PASS: TestAccAWSSpotFleetRequest_launchTemplateWithOverrides (216.46s) --- PASS: TestAccAWSSpotFleetRequest_lowestPriceAzInGivenList (273.30s) --- PASS: TestAccAWSSpotFleetRequest_lowestPriceAzOrSubnetInRegion (345.74s) --- PASS: TestAccAWSSpotFleetRequest_lowestPriceSubnetInGivenList (285.52s) --- PASS: TestAccAWSSpotFleetRequest_multipleInstancePools (351.19s) --- PASS: TestAccAWSSpotFleetRequest_multipleInstanceTypesInSameAz (337.09s) --- PASS: TestAccAWSSpotFleetRequest_multipleInstanceTypesInSameSubnet (216.98s) --- PASS: TestAccAWSSpotFleetRequest_overriddingSpotPrice (320.64s) --- PASS: TestAccAWSSpotFleetRequest_placementTenancyAndGroup (63.07s) --- PASS: TestAccAWSSpotFleetRequest_tags (354.51s) --- PASS: TestAccAWSSpotFleetRequest_updateExcessCapacityTerminationPolicy (542.49s) --- PASS: TestAccAWSSpotFleetRequest_updateTargetCapacity (828.53s) --- PASS: TestAccAWSSpotFleetRequest_withEBSDisk (279.53s) --- PASS: TestAccAWSSpotFleetRequest_WithELBs (268.50s) --- PASS: TestAccAWSSpotFleetRequest_withoutSpotPrice (350.86s) --- PASS: TestAccAWSSpotFleetRequest_withTags (282.52s) --- PASS: TestAccAWSSpotFleetRequest_WithTargetGroups (410.53s) --- PASS: TestAccAWSSpotFleetRequest_withWeightedCapacity (289.97s) ```
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Replaces #4866
Closes #4267
Release note for CHANGELOG:
Output from acceptance testing: