Serverless SignalR on AWS
Building & Deploying WebSockets Applications on AWS with SignalR.
Deployment
- Init and apply the terraform code in the
infra
directory - Clone the repository
- Run
copilot env init
to initialize your environment- When asked, opt to import a VPC and select the VPC deployed as part of the Terraform apply
- Run
copilot env deploy --name test
to deploy the test environment - Run
copilot svc init --name signal-r-front
to initialize the frontend service - Run
copilot svc init --name signal-r-gateway
to initialize the gateway - Run
copilot svc init --name translation-worker
to initialize the worker service - Go through each svc running the
copilot deploy --name
command. E.g.copilot deploy --name signal-r-front
- Before deploying
signal-r-gateway
andtranslation-worker
ensure you open the manifests undercopilot/signal-r-gateway/manifest.yml
and update the Redis endpoint and SQS queue URL's
- Before deploying