-
Notifications
You must be signed in to change notification settings - Fork 202
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 instances block_duration_minutes is not supported in AWS anymore? #596
Comments
@tas50 Don't know who can take a look at this one.... |
@fzipi360 you're correct in that AWS broke this feature. I ended up writing a lambda function to clean up test-kitchen instances that are >48 hours old, but it's not really designed properly. IMO it's kitchen-ec2's responsibility to own the lifecycle of the systems it creates. To that end, I was thinking of doing something like this (draw.io link): This will significantly expand the scope of the APIs that kitchen-ec2 has to have permission over, but I'm of the opinion that these requirements are reasonable. Any thoughts? |
Hey @RulerOf ! We did more or less the same, having a reaper process that ends instances based on kitchen tags that run periodically. But I think we also need to clean it up to accept that |
With the underlying functionality being entirely different, I'm not sure I would want to implement this new approach as a failover for account that doesn't support Thinking about this some more, I'd propose two conflicting parameters:
I suggest both of these because the former is really easy to understand, but the latter is really honestly how I would prefer it to work. |
🗣️ Foreword
Thank you for taking the time to fill out this bug report fully. Without it, we may not be able to fix the bug, and the issue may be closed without resolution.
👻 Brief Description
Per this AWS documentation, the
block_duration_minutes
is not available anymore (don't know if only on new accounts).One course of action here is to use without altering too much is to do some date math and push the same time delta in the block_duration_minutes to the valid_until method. Like, for example,
valid_until = Time.now.advance(minutes: block_duration_minutes)
, and then pass that to the corresponding object.Version
Environment
MacOS Ventura.
Scenario
env KITCHEN_LOCAL_YML=../kitchen.yml kitchen test default-ec2-ubuntu-1404
Steps to Reproduce
Using this example config:
AWS Account was created recently just for this.
Expected Result
kitchen test to finish properly.
Actual Result
➕ Additional context
Add any other context about the problem here. e.g. related issues or existing pull requests.
The text was updated successfully, but these errors were encountered: