CDKTF app that deploys NestJS and Nuxt Lambdaliths along with a serverless Redis database to AWS.
This app leverages the AWS Lambda Web Adapter with Lambda Function URLs.
back-lambda
- Environment variables:
REDIS_SERVER
- Address of the Redis database in the form ofredis://<user>:<psw>@<host>:<port>
- Port bindings:
4000
- Endpoints:
/api/clicks
- Returns current click count/api/clicks/incr
- Increments click count by 1 and returns new click count/api/ping
- Returns static "pong" response
- Environment variables:
front-lambda
- Environment variables:
BACKEND_API_URL
- Address of the backend service reachable from the server-side in the form ofhttp://<host>
CLIENT_API_URL
- Address of the backend service reachable from the client-side in the form ofhttp://<host>
- Port bindings:
3000
- Endpoints:
/
- Click counter display/UI/ping
- Returns static "pong" response
- Environment variables:
- AWS:
- Must have authenticated with Default Credentials in your local environment.
- Upstash:
- Must have set the
UPSTASH_EMAIL
andUPSTASH_API_KEY
variables in your local environment.
- Must have set the
- Node.js + npm:
- Must be installed in your system.
- Docker:
- Must be installed in your system and running at deployment.
npx projen install
npx projen deploy
npx projen destroy