Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(MngClusterProviderProps): The version field is not available & Not created with the specified version in EKS Blueprints v1.11.3 #841

Closed
raphael-shin opened this issue Sep 18, 2023 · 0 comments · Fixed by #843
Labels
bug Something isn't working

Comments

@raphael-shin
Copy link
Contributor

raphael-shin commented Sep 18, 2023

Describe the bug

Object literal may only specify known properties, and 'version' does not exist in type 'MngClusterProviderProps' syntax error occurs. My dependencies like below.

"dependencies": {
    "@aws-quickstart/eks-blueprints": "^1.11.3",
    "aws-cdk-lib": "2.91.0",
    "constructs": "^10.0.0",
    "source-map-support": "^0.5.21"
  }

Expected Behavior

A Managed Node Group Cluster Provider document states that the field must be usable.

Current Behavior

This is sample code.

#!/usr/bin/env node
import * as cdk from 'aws-cdk-lib';
import * as blueprints from '@aws-quickstart/eks-blueprints';
import * as eks from 'aws-cdk-lib/aws-eks';
import * as ec2 from 'aws-cdk-lib/aws-ec2';

const app = new cdk.App();
const account = 'XXXXX';
const region = 'XXXXX';

const mngClusterProvider = new blueprints.MngClusterProvider({
    minSize: 2,
    maxSize: 4,
    desiredSize: 2,
    instanceTypes: [new ec2.InstanceType("m5.xlarge")],
    nodeGroupCapacityType: eks.CapacityType.ON_DEMAND,
    amiType: eks.NodegroupAmiType.AL2_X86_64
})

const stack = blueprints.EksBlueprint.builder()
    .account(account)
    .region(region)
    .version(eks.KubernetesVersion.V1_27) // Cluster Version v1.27
    .clusterProvider(mngClusterProvider)
    .useDefaultSecretEncryption(true)
    .build(app, 'eks-blueprints-mng-cluster');

Reproduction Steps

mkdir my-blueprints
cd my-blueprints
cdk init app --language typescript
npm i @aws-quickstart/eks-blueprints

Edit /bin/my-blueprint.ts

const clusterProps: blueprints.MngClusterProviderProps = {
    version: eks.KubernetesVersion.V1_27,
    minSize: 2,
    maxSize: 4,
    desiredSize: 2,
    instanceTypes: [new ec2.InstanceType("m5.xlarge")],
    nodeGroupCapacityType: eks.CapacityType.ON_DEMAND,
    amiType: eks.NodegroupAmiType.AL2_X86_64
}

const stack = blueprints.EksBlueprint.builder()
    .account(account)
    .region(region)
    .clusterProvider(new blueprints.MngClusterProvider(clusterProps))
    .useDefaultSecretEncryption(true)
    .build(app, 'my-eks-cluster');

And cdk bootstrap & deploy

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.91.0

EKS Blueprints Version

1.11.3

Node.js Version

18.17.1

Environment details (OS name and version, etc.)

Ubuntu 22

Other information

No response

@raphael-shin raphael-shin added the bug Something isn't working label Sep 18, 2023
@raphael-shin raphael-shin changed the title (MngClusterProviderProps): The version field is not available. (MngClusterProviderProps): The version field is not available in EKS Blueprints v1.11.3 Sep 18, 2023
@raphael-shin raphael-shin changed the title (MngClusterProviderProps): The version field is not available in EKS Blueprints v1.11.3 (MngClusterProviderProps): The version field is not available in EKS Blueprints v1.11.3 & Not created with the specified version Sep 19, 2023
@raphael-shin raphael-shin changed the title (MngClusterProviderProps): The version field is not available in EKS Blueprints v1.11.3 & Not created with the specified version (MngClusterProviderProps): The version field is not available & Not created with the specified version in EKS Blueprints v1.11.3 Sep 19, 2023
elamaran11 added a commit that referenced this issue Sep 19, 2023
@elamaran11 elamaran11 linked a pull request Sep 19, 2023 that will close this issue
elamaran11 added a commit that referenced this issue Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant