You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 4, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: workshop/content/csharp/buildpipe/cdkinit/_index.en.md
+13-8Lines changed: 13 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -4,16 +4,12 @@ date = 2021-08-30T08:30:00-06:00
4
4
weight = 21
5
5
+++
6
6
7
-
## Install the latest CDK
7
+
## Install the CDK V1
8
8
9
-
If you are using Cloud9, the CDK is already pre-installed but it will likely be a few versions old. Likewise, the Node.js runtime is outdated.
9
+
If you are using Cloud9, the CDK is already pre-installed but it will likely be a the CDK V2. Where this workshop was published for AWS CDK V1. Run the following commands from the Cloud9 terminal to remove your current version we will initialize the pipeline with V1 in a bit:
10
10
11
-
Run the following commands from the Cloud9 terminal to update Node.js and and install the latest AWS CDK:
Copy file name to clipboardExpand all lines: workshop/content/python/buildpipe/cdkinit/_index.en.md
+13-7Lines changed: 13 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,12 @@ date = 2021-08-30T08:30:00-06:00
4
4
weight = 21
5
5
+++
6
6
7
-
## Install the latest CDK
7
+
## Install the CDK V1
8
8
9
-
If you are using Cloud9, the CDK is already pre-installed but it will likely be a few versions old. Likewise, the Node.js runtime is outdated.
9
+
If you are using Cloud9, the CDK is already pre-installed but it will likely be a the CDK V2. Where this workshop was published for AWS CDK V1. Run the following commands from the Cloud9 terminal to remove your current version we will initialize the pipeline with V1 in a bit:
10
10
11
-
Run the following commands from the Cloud9 terminal to update Node.js and and install the latest AWS CDK:
12
11
```bash
13
-
nvm install lts/fermium
14
-
nvm alias default lts/fermium
15
-
npm install -g aws-cdk
12
+
npm uninstall -g cdk
16
13
```
17
14
18
15
### Initialize project
@@ -27,7 +24,16 @@ cd pipeline
27
24
Initialize a new CDK project within the _pipeline_ folder by running the following command:
28
25
29
26
```bash
30
-
cdk init --language python
27
+
npx aws-cdk@1.x init app --language python
28
+
```
29
+
30
+
{{% notice tip %}}
31
+
You will be prompted to install ```aws-cdk@1.x```, go ahead and accept with ```y```.
32
+
{{% /notice %}}
33
+
34
+
Now add an alias as ```cdk``` for AWS CDK V1:
35
+
```bash
36
+
alias cdk="npx aws-cdk@1.x"
31
37
```
32
38
33
39
Now install the CDK modules that we will be using to build a pipeline:
0 commit comments