Skip to main content

Provision Example Services on the ECS Platform

Provision an example service like the Echo server to test your cluster’s functionality. This will ensure you can access the service remotely via the load balancer, both publicly and privately through the VPN.

Quick Start

StepsExample
Deploy Echo Serveratmos workflow deploy/echo-server -f ecs

Once the cluster is up and running, continue with the first ECS service deployment. We deploy Echo Server as an example and to validate a given cluster. This deploys two ECS services: one private and one public. The private deployment should only be accessible by VPN.

1 Deploy Echo Server

Run the following to deploy ecs/platform/service/echo-server and ecs/platform/service/echo-server-private to every cluster.

These are the commands included in the deploy/echo-server workflow in the examples/snippets/stacks/workflows/ecs.yaml file:
    No commands found
Too many commands? Consider using the Atmos workflow! 🚀

2 Verify the Deployment of Public Endpoints

In your browser, go to each of the following URLs. Make sure to use your service discovery domain and not the example.

plat-sandbox
Go to https://echo-server.public-platform.use1.sandbox.plat.acme-svc.com/
plat-dev
Go to https://echo-server.public-platform.use1.dev.plat.acme-svc.com/
plat-staging
Go to https://echo-server.public-platform.use1.staging.plat.acme-svc.com/
plat-prod
Go to https://echo-server.public-platform.use1.prod.plat.acme-svc.com/

3 Verify the Deployment of Private Endpoints

Verify these are not publicly accessible. Each of the following should time out if not connected to the VPN.

plat-sandbox
Go to https://echo-server.private-platform.use1.sandbox.plat.acme-svc.com/
plat-dev
Go to https://echo-server.private-platform.use1.dev.plat.acme-svc.com/
plat-staging
Go to https://echo-server.private-platform.use1.staging.plat.acme-svc.com/
plat-prod
Go to https://echo-server.private-platform.use1.prod.plat.acme-svc.com/

4 Test Private Endpoints using VPN

Then connect to the VPN to successfully, and retry the previous step.