Cluster eksCluster = Cluster.Builder.create(this,"eks-cluster")
.vpc(vpc)
.vpcSubnets(List.of(
SubnetSelection.builder().subnetType(SubnetType.PUBLIC).build(),
SubnetSelection.builder().subnetType(SubnetType.PUBLIC).build(),
SubnetSelection.builder().subnetType(SubnetType.PUBLIC).build()))
.defaultCapacity(2)
.defaultCapacityInstance(InstanceType.of(InstanceClass.T3, InstanceSize.SMALL))
.defaultCapacityType(DefaultCapacityType.EC2)
.mastersRole(clusterAdminRole)
.albController(AlbControllerOptions.builder() (1)
.version(AlbControllerVersion.V2_5_1)
.build())
.version(KubernetesVersion.V1_27).build();