-
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
Allow creation of everlasting spot fleet requests #9718
Conversation
According to the AWS API doc, if `valid until` is _not_ set, then the spot fleet request "remains until you cancel it". By having a 24 hr default, then this behaviour cannot be achieved using this terraform provider - so the default it removed. Some conversation about the default: hashicorp@5bafd4b#r34628957 The relevant AWS doc: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotFleetRequestConfigData.html
26ef750
to
a005a97
Compare
I have no idea why |
I just got bit by this as well. It is an odd arbitrary default value and leads to workaround like this: https://www.reddit.com/r/aws/comments/8t3373/whats_up_with_spot_fleet_request_valid_until/e14ilye/ Can we tickle this PR so the review bot will look at it again? The logs from the previous run are gone. |
I am currently trying to figure out how to do this. |
a190732
to
a005a97
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after fixing the merge conflict, thanks @jkburges 🚀
Output from acceptance testing:
--- PASS: TestAccAWSSpotFleetRequest_LaunchSpecification_EbsBlockDevice_KmsKeyId (113.80s)
--- PASS: TestAccAWSSpotFleetRequest_LaunchSpecification_RootBlockDevice_KmsKeyId (113.50s)
--- PASS: TestAccAWSSpotFleetRequest_WithELBs (235.61s)
--- PASS: TestAccAWSSpotFleetRequest_WithTargetGroups (442.58s)
--- PASS: TestAccAWSSpotFleetRequest_associatePublicIpAddress (262.34s)
--- PASS: TestAccAWSSpotFleetRequest_basic (594.58s)
--- PASS: TestAccAWSSpotFleetRequest_changePriceForcesNewRequest (886.41s)
--- PASS: TestAccAWSSpotFleetRequest_disappears (606.81s)
--- PASS: TestAccAWSSpotFleetRequest_diversifiedAllocation (297.72s)
--- PASS: TestAccAWSSpotFleetRequest_fleetType (596.52s)
--- PASS: TestAccAWSSpotFleetRequest_iamInstanceProfileArn (600.46s)
--- PASS: TestAccAWSSpotFleetRequest_instanceInterruptionBehavior (377.27s)
--- PASS: TestAccAWSSpotFleetRequest_launchSpecToLaunchTemplate (572.48s)
--- PASS: TestAccAWSSpotFleetRequest_launchTemplate (316.61s)
--- PASS: TestAccAWSSpotFleetRequest_launchTemplateToLaunchSpec (511.71s)
--- PASS: TestAccAWSSpotFleetRequest_launchTemplateWithOverrides (274.95s)
--- PASS: TestAccAWSSpotFleetRequest_launchTemplate_multiple (225.88s)
--- PASS: TestAccAWSSpotFleetRequest_lowestPriceAzInGivenList (223.90s)
--- PASS: TestAccAWSSpotFleetRequest_lowestPriceAzOrSubnetInRegion (595.91s)
--- PASS: TestAccAWSSpotFleetRequest_lowestPriceSubnetInGivenList (222.91s)
--- PASS: TestAccAWSSpotFleetRequest_multipleInstancePools (370.43s)
--- PASS: TestAccAWSSpotFleetRequest_multipleInstanceTypesInSameAz (295.97s)
--- PASS: TestAccAWSSpotFleetRequest_multipleInstanceTypesInSameSubnet (272.91s)
--- PASS: TestAccAWSSpotFleetRequest_overriddingSpotPrice (315.56s)
--- PASS: TestAccAWSSpotFleetRequest_placementTenancyAndGroup (58.75s)
--- PASS: TestAccAWSSpotFleetRequest_tags (312.62s)
--- PASS: TestAccAWSSpotFleetRequest_updateExcessCapacityTerminationPolicy (814.76s)
--- PASS: TestAccAWSSpotFleetRequest_updateTargetCapacity (878.48s)
--- PASS: TestAccAWSSpotFleetRequest_withEBSDisk (595.56s)
--- PASS: TestAccAWSSpotFleetRequest_withTags (597.37s)
--- PASS: TestAccAWSSpotFleetRequest_withWeightedCapacity (304.19s)
--- PASS: TestAccAWSSpotFleetRequest_withoutSpotPrice (282.35s)
… 3 upgrade guide Reference: #9718
This has been released in version 3.0.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! |
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! |
According to the AWS API doc, if
valid until
is not set, then the spot fleet request "remains until you cancel it". By having a 24 hr default, then this behaviour cannot be achieved using this terraform provider - so the default it removed.Some conversation about the default: 5bafd4b#r34628957
The relevant AWS doc: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotFleetRequestConfigData.html
Community Note
Release note for CHANGELOG: