Skip to content

Commit 2f265ba

Browse files
committed
🎉feat: improved stack model
1 parent 4d6b056 commit 2f265ba

File tree

11 files changed

+202
-142
lines changed

11 files changed

+202
-142
lines changed

‎.env.example

Lines changed: 0 additions & 8 deletions
This file was deleted.

‎README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
# 🌴 CDK v2 Simple Lambda HTTP ApiGateway Starter
1+
# 🌴 CDK v2 Simple Lambda HTTP ApiGateway Model
22

3-
## Alpha L2 Constructs
4-
5-
This project uses L2 CDK v2 constructs in `alpha` stage for `apigatewayv2` use of HTTP API and its integration. I decided to go with HTTP API because of the lower costs for this kind of API.
3+
// TBD
64

75
## Beware export lambda
86

‎cdk.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"app": "npx ts-node setup.ts"
2+
"app": "ts-node setup.ts"
33
}

‎config.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"apiName": "SimpleLambdas",
3+
"apiDescription": "General purpose Lambda to get request from API Gateway with CDK",
4+
"api": {
5+
"handler": "ApiLambda"
6+
},
7+
"headers": {
8+
"Content-Type": "text/plain;charset=utf-8",
9+
"X-Clacks-Overhead": "GNU Terry Pratchett"
10+
},
11+
"region": "us-east-2",
12+
"stack": {
13+
"project": "SimpleStack",
14+
"name": "CDKLambdaStack",
15+
"description": "CDK Stack"
16+
},
17+
"tags": [
18+
{
19+
"key": "Key", "value": "Value"
20+
},
21+
{
22+
"key": "Project", "value": "LambdaTemplate"
23+
}
24+
]
25+
}

‎config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import config from "./config.json";
2+
import pkg from "./package.json";
3+
4+
const Config = {
5+
version: pkg.version,
6+
...config,
7+
};
8+
9+
export { Config };

0 commit comments

Comments
 (0)