Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

Commit 6f8295d

Browse files
committed
updates readme with cdk instructions
1 parent 7a87a26 commit 6f8295d

File tree

1 file changed

+12
-28
lines changed

1 file changed

+12
-28
lines changed

‎README.md

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -18,40 +18,24 @@ To start, launch the solution architecture described above as a prepackaged appl
1818

1919
### Option B: Deploy the template from code
2020

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).
2222

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:
2424

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+
```
3329

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.
3731

38-
3. Optionally run the tests:
32+
### Deployment using CDK
3933

40-
```bash
41-
./run-unit-tests.sh
42-
```
34+
Create or update the application with `cdk deploy`.
4335

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 function code as a package to S3.
51-
52-
```bash
53-
sam deploy --guided
54-
```
36+
```bash
37+
cdk deploy --parameters applicationPrefix=<PREFIX>
38+
```
5539

5640
### Access the Example Dashboard
5741

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /