-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(api-cors-lambda-crud-dynamodb example): Implement use of NodejsFu…
…nction, replaced deprecated API (#468) * fix(package.json,src,index.ts,tsconfig.json): Implement use of NodejsFunction, renamed src -> lambdas, upgraded lambda runtime from node 10 -> 14 ref PR #278 * clean: using direct imports, removed duplicate NodeJsFunctionProps, added newlines * clean: format tsconfig.json spacing from 4 -> 2
- Loading branch information
Showing
12 changed files
with
168 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"app": "node index" | ||
"app": "index.js" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
...rs-lambda-crud-dynamodb/src/delete-one.ts → ...ambda-crud-dynamodb/lambdas/delete-one.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
...-cors-lambda-crud-dynamodb/src/get-one.ts → ...s-lambda-crud-dynamodb/lambdas/get-one.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
typescript/api-cors-lambda-crud-dynamodb/lambdas/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "lambda-crud-dynamodb", | ||
"version": "1.0.0", | ||
"description": "Lambdas to do CRUD operations on DynamoDB", | ||
"private": true, | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@types/node": "*", | ||
"@types/uuid": "*" | ||
}, | ||
"dependencies": { | ||
"aws-sdk": "*", | ||
"uuid": "*" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
typescript/api-cors-lambda-crud-dynamodb/lambdas/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"include": [ | ||
"*.ts" | ||
] | ||
} |
Oops, something went wrong.