Open elamaran11 opened 1 year ago
I am afraid this is a limitation from EKS or CFN. Thanks for the report. I will circle back if I have any updates.
Hi
According to this document, RequestSpotInstances is not supported in LuanchTemplate so I am afraid it's the limit from EKS rather than CDK.
Hi @pahud Thankyou for your response. I understand your pointers. The request is for SpotOptions, Spot Instances does work for us. I do see that EKS Managed Node Groups is not supporting Spot Options though it supports to create MNG with LaunchTemplate having spot reference. We raised this request to check if there is a way to get over this limitation.
@elamaran11 Thank you for clarification. This seems to be a limitation on CFN side that CDK would probably not be able to work around. I would suggest open an issue on aws/containers-roadmap and link back to this issue. I believe the container team would love to hear customer feedback like this. By the time CFN remove this blocker, CDK would be able to support it I believe.
https://github.com/aws/containers-roadmap/issues/1575 @pahud There is already a ticket on Containers Roadmap for this. Should we keep this ticket active until this is resolved.
Describe the bug
Trying to create an EKS Managed Node Group with a Launch Template using CDK EKS/EC2 module with following spot options.
EKS Managed Nodegroup creation fails with following error :
This clearly shows that NodeGroup creation of EKS wont support Launch template with spot options.
Expected Behavior
EKS Managed Node group creation to support Launch template with Spot options with CDK.
Current Behavior
EKS Managed Nodegroup creation fails with following error :
Reproduction Steps
Try to create a Launch template with following options and use the same while creating EKS Node Group.
Possible Solution
Adding support for EKS Managed Node group creation to support Launch template with Spot options with CDK.
Additional Information/Context
No response
CDK CLI Version
2.67
Framework Version
No response
Node.js Version
v19.6.1
OS
Mac/Ubuntu
Language
Typescript
Language Version
No response
Other information
No response