Open surajnarwade opened 3 years ago
I am seeing this error, too when trying to pass (or rather add) this to the template:
instance_market_options {
market_type = "spot"
spot_options {
spot_instance_type = "persistent"
}
}
Any updates on this?
Good day, is there any news on this issue?
This is an issue with the underlying EKS service. Unfortunately, the user-facing documentation doesn't make this clear. The only reference to this that I could find is: https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/eks@v1.27.0/types#LaunchTemplateSpecification:
An object representing a node group launch template specification. The launch template can't include...RequestSpotInstances (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotInstances.html).
Whilst you're prohibited from putting put fine-grained market options in a launch template used by EKS, you can specify the use of Spot instances using capacity_type = "SPOT"
on your aws_eks_node_group
resource.
I am facing this issue. Although is possible to use capacity_type = "SPOT"
for creating requests with spots, as @mattburgess said, I also need to create those spots in a persistent
mode. Seems that the default mode is one-time
and the only way to change that is by using instance_market_options
block. Is there any another way that I'm missing or any workaround for it?
Also, seems that the API used by the provider (specifically by aws_launch_template
) is RequestSpotInstances
and that fact is the one causing trouble. Is it possible to change it for CreateFleet
and/or CreateAutoScalingGroup
APIs as suggested by AWS?
I am trying out the EKS node group along with the launch template to spin spot instance & I am getting the following error:
Configuration I am passing to launch template: