Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -917,14 +917,11 @@
"EksAllHandlersInVpcStackNodegroupDefaultCapacityD8DD5ECF": {
"Type": "AWS::EKS::Nodegroup",
"Properties": {
"AmiType": "AL2_x86_64",
"AmiType": "AL2023_x86_64_STANDARD",
"ClusterName": {
"Ref": "EksAllHandlersInVpcStack9ED695D7"
},
"ForceUpdateEnabled": true,
"InstanceTypes": [
"m5.large"
],
"NodeRole": {
"Fn::GetAtt": [
"EksAllHandlersInVpcStackNodegroupDefaultCapacityNodeGroupRoleFFBF949C",
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,18 @@ class EksAllHandlersInVpcStack extends Stack {
super(scope, id);

this.node.setContext(EC2_RESTRICT_DEFAULT_SECURITY_GROUP, false);
new eks.Cluster(this, 'EksAllHandlersInVpcStack', {
// create the cluster with no default capacity — nodegroup added separately with AL2023 AMI
// (AL2 is not supported for Kubernetes 1.33+)
const cluster = new eks.Cluster(this, 'EksAllHandlersInVpcStack', {
...getClusterVersionConfig(this),
defaultCapacity: 0,
placeClusterHandlerInVpc: true,
});

cluster.addNodegroupCapacity('DefaultCapacity', {
minSize: 2,
amiType: eks.NodegroupAmiType.AL2023_X86_64_STANDARD,
});
}
}

Expand Down
Loading