This is an extremely minimal skeleton of a dotnet serverless API which can be deployed using Terraform (HCL) or CDKTF (TS).
- adapted from ASP.NET Core Minimal API Serverless Application AWS template
- uses AWS Lambda exposed through Amazon API Gateway
- Written for learning CDKTF
- dotnet 8
- node.js >= 18.0
- aws account
- authentication of aws provider
dotnet build --configuration Release
cd infra-tf
terraform init
terraform plan
terraform apply --auto-approve
cd infra-cdktf
npm install
cdktf diff
cdktf deploy --auto-approve