Route53 to ALB to ECS AWS Fargate

Route53 → ALB → Fargate

This pattern shows how to deploy a containerized Web API as an ECS fargate service, and expose it with a custom domain using Route53

The CDK stack creates an ECS fargate service that hosts a containerized Web API.
The ECS service is fronted by Application Load Balancer present in public subnet, while ECS tasks runs in private subnet.
Requests are first recieved by the Route53, and then forwarded to Application Load Balancer (ALB).
ALB does the SSL offloading and forward the requests to ECS tasks.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/route53-alb-fargate-cdk-dotnet

Deploy

See the GitHub repo for detailed deployment instructions.


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

See the GitHub repo for detailed cleanup instructions.

Created by:

Ankush Jain

Ankush Jain

Application Development Consultant at AWS Professional Services.

Follow on LinkedIn