-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
feat: Add ability to support spot options for launch template #1630
Conversation
Maybe someone can review and accept it? I also interested in such feature |
@davidweizheng could you update an example so that it can be tested/validated and also for demonstrating its use to users - please 🙏🏽 and thank you! |
docs/spot-instances.md
Outdated
spot_options = { | ||
block_duration_minutes = "60" | ||
instance_interruption_behavior = "terminate" | ||
max_price = null |
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.
code should be able to take a default provider values in cae of missing value for field. As a lot of them are optional we cannot require to put null
from users.
Here you can take a look of some constructions which we using to make such optional inputs:
terraform-aws-eks/modules/node_groups/launch_template.tf
Lines 88 to 92 in 56e93d7
metadata_options { | |
http_endpoint = lookup(each.value, "metadata_http_endpoint", null) | |
http_tokens = lookup(each.value, "metadata_http_tokens", null) | |
http_put_response_hop_limit = lookup(each.value, "metadata_http_put_response_hop_limit", null) | |
} |
terraform-aws-eks/modules/fargate/main.tf
Lines 66 to 69 in 56e93d7
timeouts { | |
create = try(each.value["timeouts"].create, null) | |
delete = try(each.value["timeouts"].delete, null) | |
} |
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.
Thanks @daroga0002 . This is very helpful. I'll definitely take a look.
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.
Fixed.
I do have example in |
Ping this one more time ) |
Could someone review this? |
This PR has been automatically marked as stale because it has been open 30 days |
This issue has been resolved in version 18.0.0 🎉 |
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. |
PR o'clock
Description
Add ability to support spot options for launch template to address this issue: #1626
Checklist