cdk-local-lambda 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Run lambdas in CDK stack locally
|
|
2
2
|
|
|
3
|
-
Run typescript and docker lambdas in a
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
Run typescript and docker lambdas in a CDK stack locally. This
|
|
4
|
+
improves the DX as you can edit lambdas and see changes and fixes
|
|
5
|
+
immediately.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Needs two minor changes to a CDK stack, and the supplied cli to launch it.
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
@@ -64,19 +64,19 @@ app.synth()
|
|
|
64
64
|
The daemon deploys your stack with live mode enabled and runs your Lambda functions locally:
|
|
65
65
|
|
|
66
66
|
```bash
|
|
67
|
-
npx
|
|
67
|
+
npx cll local
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
If you have multiple stacks:
|
|
71
71
|
|
|
72
72
|
```bash
|
|
73
|
-
npx
|
|
73
|
+
npx cll local --stacks MyStack
|
|
74
74
|
```
|
|
75
75
|
|
|
76
76
|
Use `--profile` and `--region` to specify AWS credentials:
|
|
77
77
|
|
|
78
78
|
```bash
|
|
79
|
-
npx
|
|
79
|
+
npx cll local --stacks MyStack --profile my-profile --region us-west-2
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
### Manual bootstrap (optional)
|
|
@@ -84,7 +84,7 @@ npx cdk-local-lambda local --stacks MyStack --profile my-profile --region us-wes
|
|
|
84
84
|
If you prefer to deploy the bootstrap stack separately:
|
|
85
85
|
|
|
86
86
|
```bash
|
|
87
|
-
npx
|
|
87
|
+
npx cll bootstrap --profile my-profile --region us-west-2
|
|
88
88
|
```
|
|
89
89
|
|
|
90
90
|
## Common issues
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"url": "https://github.com/processfocus/cdk-local-lambda.git"
|
|
7
7
|
},
|
|
8
8
|
"bin": {
|
|
9
|
-
"
|
|
9
|
+
"cll": "lib/cli/index.js"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build": "npx projen build",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"publishConfig": {
|
|
86
86
|
"access": "public"
|
|
87
87
|
},
|
|
88
|
-
"version": "0.0.
|
|
88
|
+
"version": "0.0.4",
|
|
89
89
|
"bugs": {
|
|
90
90
|
"url": "https://github.com/processfocus/cdk-local-lambda/issues"
|
|
91
91
|
},
|