aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

CDK: Support EKS Managed Node Group EDP discounts for spot

Open avshabavsha opened this issue 1 year ago • 4 comments

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

avshabavsha avatar Dec 26 '23 09:12 avshabavsha

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?

pahud avatar Dec 26 '23 15:12 pahud

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.

github-actions[bot] avatar Dec 28 '23 16:12 github-actions[bot]

Pending extra information from the customer about context ID.

evgenyka avatar Jan 03 '24 16:01 evgenyka

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: image

GoldenBoy1980 avatar Jan 04 '24 07:01 GoldenBoy1980