This repository was archived by the owner on Jul 16, 2024. It is now read-only.
File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ import { Construct } from 'constructs';
3
3
import * as ara from 'aws-analytics-reference-architecture' ;
4
4
import * as iam from 'aws-cdk-lib/aws-iam' ;
5
5
import { User } from 'aws-cdk-lib/aws-iam' ;
6
+ import { KubectlV22Layer } from '@aws-cdk/lambda-layer-kubectl-v22' ;
7
+ import { KubernetesVersion } from 'aws-cdk-lib/aws-eks' ;
6
8
7
9
8
10
export class EmrEksAppStack extends cdk . Stack {
@@ -11,11 +13,15 @@ export class EmrEksAppStack extends cdk.Stack {
11
13
12
14
const resultsBucket = ara . AraBucket . getOrCreate ( this , {
13
15
bucketName : 'results-bucket' ,
14
- } )
16
+ } ) ;
17
+
18
+ const kubectl = new KubectlV22Layer ( this , 'KubectlLayer' ) ;
15
19
16
20
const emrEks = ara . EmrEksCluster . getOrCreate ( this , {
17
21
eksClusterName :'emreks' ,
18
22
autoscaling : ara . Autoscaler . KARPENTER ,
23
+ kubernetesVersion : KubernetesVersion . V1_22 ,
24
+ kubectlLambdaLayer : kubectl ,
19
25
} ) ;
20
26
21
27
const virtualCluster = emrEks . addEmrVirtualCluster ( this , {
Original file line number Diff line number Diff line change 24
24
"aws-analytics-reference-architecture" : " 2.8.8" ,
25
25
"aws-cdk-lib" : " 2.51.0" ,
26
26
"constructs" : " ^10.0.0" ,
27
- "source-map-support" : " ^0.5.21"
27
+ "source-map-support" : " ^0.5.21" ,
28
+ "@aws-cdk/lambda-layer-kubectl-v22" : " 2.0.6"
28
29
}
29
30
}
You can’t perform that action at this time.
0 commit comments