Demonstrates how to run a dockerized Python application in an ECS cluster Fargate or EC2-based)
APACHE-2.0 License
The application consists of a Python web server rendering basic information and offering this at the root path of the server.
The container image used is available at Docker Hub.
The ECS cluster will run in a new VPC with CIDR 10.1.0.0/16. To keep the management overhead low it will be powered by Fargate.
A service and a task definition are created:
After the cluster has been deployed via
cdk deploy
the DNS name of the load balancer is returned/ printed to the console.
assignPublicIp
to true
.