Skip to content

Commit 3b404c6

Browse files
committed
update new README
1 parent 85082b6 commit 3b404c6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: examples/cdk/README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@ This is a deployable CDK app that deploys AWS Lambda functions as part of a Clou
44

55
You will need to have a valid AWS Account in order to deploy these resources. These resources may incur costs to your AWS Account. The cost from **some services** are covered by the [AWS Free Tier](https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all) but not all of them. If you don't have an AWS Account follow [these instructions to create one](https://aws.amazon.com/premiumsupport/knowledge-center/create-and-activate-aws-account/).
66

7-
The example functions, located in the `lib` folder, are invoked automatically, twice, when deployed using the CDK construct defined in `lib/example-function.ts`. The first invocation demonstrates the effect on logs/metrics/annotations when the Lambda function has a cold start, and the latter without a cold start.
7+
The example functions, located in the `src` folder, are invoked automatically, twice, when deployed using the CDK construct defined in `src/example-function.ts`. The first invocation demonstrates the effect on logs/metrics/annotations when the Lambda function has a cold start, and the latter without a cold start.
88

99
## Deploying the stack
1010

11-
* Ensure that CDK v2 is installed globally on your machine (if not, run `npm install -g aws-cdk`)
1211
* Navigate to this location of the repo in your terminal (`examples/cdk`)
1312
* `npm install`
14-
* `cdk deploy --all --profile <YOUR_AWS_PROFILE>`
13+
* `npm run cdk deploy --all --profile <YOUR_AWS_PROFILE>`
1514

1615
Note: Prior to deploying you may need to run `cdk bootstrap aws://<YOU_AWS_ACCOUNT_ID>/<AWS_REGION> --profile <YOUR_AWS_PROFILE>` if you have not already bootstrapped your account for CDK.
1716

0 commit comments

Comments
 (0)