CDK: Support EKS Managed Node Group EDP discounts for spot
Describe the feature
Add ability to inject context id to enable EDP discounts for spot for EKS Managed Node Group (in CDK Typescript).
Use Case
I am unable to inject relevant context id for EKS manage node group to enable EDP discounts for spot instances. Used method cluster.addNodegroupCapacity(...) and passing parameter of launchTemplateSpec.
Proposed Solution
No response
Other Information
No response
Acknowledgements
- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
CDK version used
2.99.1
Environment details (OS name and version, etc.)
Linux
This is interesting. Can you share more details about how to inject the context ID for the managed nodegroup? Is it a Tag or label? Can you share more tech details about that?
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
Pending extra information from the customer about context ID.
As an AWS customer that has access to a Conditional Pricing deal, the customer can take advantage of low prices on EC2 Spot usage by requesting for instances using EC2 Auto Scaling Groups, Amazon EC2 Spot Fleet API, or Amazon EC2 Fleet API and specifying the deal Context as part of your launch request.
The API request will be as follows: aws create-fleet --context context-XXX
The request from CDK is exactly as Karpenter support it here: