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
REDIS_URL
- Address of the Redis database in the form of rediss://<user>:<psw>@<host>:<port>
3000
/
- 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 countfront-lambda
BACKEND_URL
- Address of the backend service reachable from the server side in the form of https://<host>
3000
/
- Click counter display/ping
- Returns static "pong" response (used for readyness check)UPSTASH_EMAIL
and UPSTASH_API_KEY
variables in your local environment.npx projen install
npx projen deploy
npx projen destroy