To deploy:
cd platform
terraform init
terraform apply --auto-approve
Once deployed
- Connect to consul-backend and start the sidecar
consul connect proxy -sidecar-for webapp-backend-01 > webapp-backend.log &
- Connect to consul-frontend and start the sidecar
consul connect proxy -sidecar-for webapp-frontend-01 > webapp-frontend.log &
- To test that the proxy is working
curl localhost:5000 # This should return "Hello from backend".
- To see the consul UI
<public_dns_of_server_1>:8500