-
Notifications
You must be signed in to change notification settings - Fork 4k
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
aws-eks: cluster.addAutoScalingGroupCapacity() does not work as outlined in the docs #33569
Comments
I should mention that this:
Is from the documentation here: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_eks-readme.html#self-managed-nodes |
addAutoScalingGroupCapacity() essentially creates the ASG like this: aws-cdk/packages/aws-cdk-lib/aws-eks/lib/cluster.ts Lines 1931 to 1943 in 5eeee75
and AutoScalingGroup() requires this to enable launchTemplate which is missing in addAutoScalingGroupCapacity()
However, when
Can you check your % grep "generateLaunchTemplateInsteadOfLaunchConfig" cdk.json
"@aws-cdk/aws-autoscaling:generateLaunchTemplateInsteadOfLaunchConfig": true, |
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. |
Hey @pahud
That was exactly what I needed. Thanks! |
Comments on closed issues and PRs are hard for our team to see. |
Describe the bug
When attempting to deploy this:
I receive this error:
The docs don't outright list the
launchTemplate
option foraddAutoScalingGroupCapacity
params (this seems like a separate bug), but it is mentioned in other docs on that page. However, if I try:I receive this error:
Regression Issue
Last Known Working CDK Version
unknown
Expected Behavior
N/A
Current Behavior
N/A
Reproduction Steps
N/A
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.180.0
Framework Version
No response
Node.js Version
23
OS
Linux
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: