Skip to content

Commit

Permalink
Version increment and doc updates
Browse files Browse the repository at this point in the history
  • Loading branch information
shapirov103 committed Mar 22, 2024
1 parent add700e commit 3e8f515
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ aws --version
Install CDK matching the current version of the Blueprints QuickStart (which can be found in package.json).

```bash
npm install -g aws-cdk@2.132.0
npm install -g aws-cdk@2.133.0
```

Verify the installation.

```bash
cdk --version
# must output 2.132.0
# must output 2.133.0
```

Create a new CDK project. We use `typescript` for this example.
Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ aws --version
Install CDK matching the current version of the Blueprints QuickStart (which can be found in package.json).

```bash
npm install -g aws-cdk@2.132.0
npm install -g aws-cdk@2.133.0
```

Verify the installation.

```bash
cdk --version
# must output 2.132.0
# must output 2.133.0
```

Create a new CDK project. We use `typescript` for this example.
Expand Down
10 changes: 5 additions & 5 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ Create a directory that represents you project (e.g. `my-blueprints`) and then c
```bash
npm install -g n # may require sudo
n stable # may require sudo
npm install -g aws-cdk@2.132.0 # may require sudo (Ubuntu) depending on configuration
cdk --version # must produce 2.132.0
npm install -g aws-cdk@2.133.0 # may require sudo (Ubuntu) depending on configuration
cdk --version # must produce 2.133.0
mkdir my-blueprints
cd my-blueprints
cdk init app --language typescript
Expand All @@ -53,11 +53,11 @@ npm ERR! node_modules/aws-cdk-lib
npm ERR! aws-cdk-lib@"2.130.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer bundled aws-cdk-lib@"2.132.0" from @aws-quickstart/[email protected]
npm ERR! peer bundled aws-cdk-lib@"2.133.0" from @aws-quickstart/[email protected]
npm ERR! node_modules/@aws-quickstart/eks-blueprint
```

This message means that the version of CDK that the customer is using is different from the version of CDK used in EKS Blueprints. Locate the line `peer bundled` and check the expected version of the CDK. Make sure that in your `package.json` the version is set to the expected. In this example, `package.json` contained `"aws-cdk-lib": "2.130.0"`, while the expected version was `2.132.0`.
This message means that the version of CDK that the customer is using is different from the version of CDK used in EKS Blueprints. Locate the line `peer bundled` and check the expected version of the CDK. Make sure that in your `package.json` the version is set to the expected. In this example, `package.json` contained `"aws-cdk-lib": "2.130.0"`, while the expected version was `2.133.0`.

**Note**: after the initial installation, upgrading the version of CDK to an incompatible higher/lower version will produce a warning, but will succeed. For community support (submitting GitHub issues) please make sure you have a matching version configured.

Expand All @@ -66,7 +66,7 @@ Example warning:
```
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer bundled aws-cdk-lib@"2.132.0" from @aws-quickstart/[email protected]
npm WARN peer bundled aws-cdk-lib@"2.133.0" from @aws-quickstart/[email protected]
```

## Deploy EKS Clusters
Expand Down
2 changes: 1 addition & 1 deletion docs/internal/ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ cd cdk-eks-blueprints
Install CDK (please review and install any missing [pre-requisites](https://docs.aws.amazon.com/cdk/latest/guide/getting_started.html) for your environment)

```sh
npm install -g aws-cdk@2.132.0
npm install -g aws-cdk@2.133.0
```

Install the dependencies for this project.
Expand Down
2 changes: 1 addition & 1 deletion lib/pipelines/code-pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ class CodePipeline {
primaryOutputDirectory: `${path}/cdk.out`,
installCommands: [
'n stable',
'npm install -g aws-cdk@2.132.0',
'npm install -g aws-cdk@2.133.0',
`cd $CODEBUILD_SRC_DIR/${path} && npm install`
],
commands: [`cd $CODEBUILD_SRC_DIR/${path}`, 'npm run build', 'npx cdk synth ' + app]
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"semver": "^7.6.0"
},
"peerDependencies": {
"aws-cdk-lib": "2.132.0",
"aws-cdk": "2.132.0"
"aws-cdk-lib": "2.133.0",
"aws-cdk": "2.133.0"
}
}

0 comments on commit 3e8f515

Please sign in to comment.