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 Jun 11, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+12-28Lines changed: 12 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,40 +18,24 @@ To start, launch the solution architecture described above as a prepackaged appl
18
18
19
19
### Option B: Deploy the template from code
20
20
21
-
You deploy the template with [AWS Serverless Application Model](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html) (AWS SAM). Additionally, you will need the [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html) and the [CDK](https://docs.aws.amazon.com/cdk/latest/guide/getting_started.html).
21
+
You deploy the template through the AWS Cloud Development Kit (CDK). You must install and configure the [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html) and the [CDK](https://docs.aws.amazon.com/cdk/latest/guide/getting_started.html).
22
22
23
-
1.The CDK template is written in TypeScript. TypeScript sources must be compiled to JavaScript initially and after each modification. Open a new terminal and keep this terminal open in the background if you like to change the source files. Change the directory to the one where `cdk.json` is and execute:
23
+
The CDK template is written in TypeScript. TypeScript sources must be compiled to JavaScript initially and after each modification. Open a new terminal and keep this terminal open in the background if you like to change the source files. Change the directory to the one where `cdk.json` is and execute:
24
24
25
-
```bash
26
-
npm install
27
-
npm run watch
28
-
```
29
-
30
-
Read the [CDK developer guide](https://docs.aws.amazon.com/cdk/latest/guide/home.html) for more information.
31
-
32
-
2. Synthesize the CDK template to an AWS CloudFormation template:
25
+
```bash
26
+
npm install
27
+
npm run watch
28
+
```
33
29
34
-
```bash
35
-
cdk synth --version-reporting false> synth.yaml
36
-
```
30
+
Read the [CDK developer guide](https://docs.aws.amazon.com/cdk/latest/guide/home.html) for more information.
37
31
38
-
3. Optionally run the tests:
32
+
### Deployment using CDK
39
33
40
-
```bash
41
-
./run-unit-tests.sh
42
-
```
34
+
Create or update the application with `cdk deploy`.
43
35
44
-
4. Build the application. The `sam build` builds all AWS Lambda functions with `npm`:
45
-
46
-
```bash
47
-
sam build -t synth.yaml
48
-
```
49
-
50
-
5. Package and deploy the template. `sam deploy` [transforms](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-deploying.html) the template to AWS CloudFormation code and uploads this template and the AWS Lambda functioncode as a package to S3.
0 commit comments