A Next.js to do list web app with FastAPI, AWS CDK, DynamoDB, Lambda Function
cdk init --language typescript
chmod -x pkg_for_lambda.sh
./pkg_for_lambda.sh
cdk deploy
// Lambda function for the API
const api = new lambda.Function(this, "API", {
runtime: lambda.Runtime.PYTHON_3_9,
code: lambda.Code.fromAsset("../api/lambda_function.zip"),
handler: "todo.handler",
environment: {
TABLE_NAME: table.tableName,
},
});