Skip to content

Commit

Permalink
fix(typescript/eks): compile fails for missing property 'version' (aw…
Browse files Browse the repository at this point in the history
…s-samples#315)

This is due to the breaking change in the eks module introduced in
version 1.50.0.
https://github.com/aws/aws-cdk/blob/master/CHANGELOG.md#1500-2020-07-07
  • Loading branch information
Niranjan Jayakar authored Jul 10, 2020
1 parent ed8aa78 commit e8acc44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -377,5 +377,6 @@ $RECYCLE.BIN/
*.swp
cdk.context.json
package-lock.json
yarn.lock
.cdk.staging
cdk.out
3 changes: 2 additions & 1 deletion typescript/eks/cluster/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class EKSCluster extends cdk.Stack {
const eksCluster = new eks.Cluster(this, 'Cluster', {
vpc: vpc,
kubectlEnabled: true, // we want to be able to manage k8s resources using CDK
defaultCapacity: 0 // we want to manage capacity our selves
defaultCapacity: 0, // we want to manage capacity our selves
version: eks.KubernetesVersion.V1_16,
});

const onDemandASG = new autoscaling.AutoScalingGroup(this, 'OnDemandASG', {
Expand Down

0 comments on commit e8acc44

Please sign in to comment.