-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
"Instance market options" with the launch template #1844
Comments
The module provides support for
|
@bryantbiggs thanks for the fast reply! and thanks for your work in this module! I also noticed even if there is an input for the Workaround
Recommendations:
|
@bryantbiggs maybe you can help me to understand where is the difference in this case I created by myself the resource "aws_launch_template" "sample_template" {
name = "sample-template"
instance_type = "t3a.xlarge"
image_id = "ami-0451386b18edb6f88"
vpc_security_group_ids = local.node_group_security_group_ids
instance_market_options {
market_type = "spot"
spot_options {
max_price = "0.071"
spot_instance_type = "one-time"
}
}
}
resource "aws_eks_node_group" "sample_group" {
node_group_name = "sample-group"
cluster_name = local.cluster_name
node_role_arn = aws_iam_role.this[0].arn
subnet_ids = var.vpc_private_subnets_ids
capacity_type = "SPOT"
scaling_config {
desired_size = 1
max_size = 3
min_size = 0
}
lifecycle {
create_before_destroy = true
ignore_changes = [
scaling_config[0].desired_size,
]
}
launch_template {
id = aws_launch_template.sample_template.id
version = aws_launch_template.sample_template.latest_version
}
}
I could create both with no problems, "in theory" the logic of the submodule "eks_managed_node_group" is pretty similar because by default there is a launch_template created. |
Give me a few to spin up a cluster and check it out further |
so it looks like there might be a loophole in the config you provided - not sure if its because of the custom AMI or what, but market options are currently not supported by the EKS managed node group service:
I did fine one small bug but thats irrelevant for your issue here (will have a PR shortly - |
This issue has been automatically marked as stale because it has been open 30 days |
This issue has been automatically marked as stale because it has been open 30 days |
This issue was automatically closed because of stale in 10 days |
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
EKS Managed Group should support the "Instance market options" with the launch template.
Versions
Reproduction
Steps to reproduce the behavior:
Code Snippet to Reproduce
For simplicity I referenced some values by using variables, local or other modules, because the root of the error is from the Launch Template creation
Expected behavior
If I attempt to create the launch template from the AWS console I can set those values. I would like to have same experience using this module
Actual behavior
Receive this error while applying
Terminal Output Screenshot(s)
Additional Content
Here you can see the creation using the AWS Console directly
The text was updated successfully, but these errors were encountered: