CDKTF app that deploys SvelteKit and Hono Lambdaliths along with an Upstash Redis database to AWS.
This app leverages the AWS Lambda Web Adapter with Lambda Function URLs.
back-lambda
- Environment variables:
REDIS_URL
- Address of the Redis database in the form ofrediss://<user>:<psw>@<host>:<port>
- Port bindings:
3000
- Endpoints:
/
- Hello message display/ping
- Returns static "pong" response (used for readyness check)/api/clicks
- Returns current click count/api/clicks/incr
- Increments click count by 1 and returns new click count
- Environment variables:
front-lambda
- Environment variables:
BACKEND_URL
- Address of the backend service reachable from the server side in the form ofhttps://<host>
- Port bindings:
3000
- Endpoints:
/
- Click counter display/ping
- Returns static "pong" response (used for readyness check)
- 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