This tutorial shows how to create a serverless and stateful application using AWS App Runner and Redis
Create Service
button. Select
Source code repository
option and add your repository by connecting your
Github and AWS accounts.
Nodejs 12
as your runtime, npm install
as your
build command, node server
as your start command and 8080
as your port.
REDIS_URL
environment variable. Your Redis URL should be something like this:
rediss://:d34baef614b6fsdeb01b25@us1-lasting-panther-33618.upstash.io:33618
You can leave other settings as default.
Create and Deploy
at the next page. Your service will be ready in a
few minutes. Click on the default domain, you should see the page with a view
counter as here.