This repository was archived by the owner on Jul 16, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 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';
33import * as ara from 'aws-analytics-reference-architecture' ;
44import * as iam from 'aws-cdk-lib/aws-iam' ;
55import { 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' ;
68
79
810export class EmrEksAppStack extends cdk . Stack {
@@ -11,11 +13,15 @@ export class EmrEksAppStack extends cdk.Stack {
1113
1214 const resultsBucket = ara . AraBucket . getOrCreate ( this , {
1315 bucketName : 'results-bucket' ,
14- } )
16+ } ) ;
17+
18+ const kubectl = new KubectlV22Layer ( this , 'KubectlLayer' ) ;
1519
1620 const emrEks = ara . EmrEksCluster . getOrCreate ( this , {
1721 eksClusterName :'emreks' ,
1822 autoscaling : ara . Autoscaler . KARPENTER ,
23+ kubernetesVersion : KubernetesVersion . V1_22 ,
24+ kubectlLambdaLayer : kubectl ,
1925 } ) ;
2026
2127 const virtualCluster = emrEks . addEmrVirtualCluster ( this , {
Original file line number Diff line number Diff line change 2424 "aws-analytics-reference-architecture" : " 2.8.8" ,
2525 "aws-cdk-lib" : " 2.51.0" ,
2626 "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"
2829 }
2930}
You can’t perform that action at this time.
0 commit comments