New CloudFormation Templates - ECS Cluster & Service, legacy VPC wrapper, automated tests

Michael Wittig – 28 Feb 2017

We released v3 of our free and open source CloudFormation templates. This release brings:

you can read the full Changelog on GitHub.

ECS

EC2 Container Service (ECS) is a highly scalable, fast, container management service that makes it easy to run, stop, and manage Docker containers on a cluster of Amazon EC2 instances. To run an application on ECS you need the following components:

We provide you templates for the ECS cluster and the service. You need to publish the Docker image.

ECS cluster

This template describes a fault tolerant and scalable ECS cluster on AWS. The cluster scales the underlying EC2 instances based on memory and CPU reservation. In case of a scale down, the instance drains all containers before it is terminated.

Architecture

The diagram was created with Cloudcraft - Visualize your cloud architecture like a pro.

Install free template

ECS service

This template describes a fault tolerant and scalable ECS service on AWS. The service scales based on CPU utilization.

The image needs to expose port 80 or the AWS::ECS::TaskDefinition needs to be adjusted!

We provide two service templates:

  • service-cluster-alb.yaml uses the cluster’s load balancer and path based routing. If you want to run multiple services on the same cluster they all will use the same domain name but start with different paths (e.g. https://yourdomain.com/service1/ and https://yourdomain.com/service2/).
  • service-dedicated-alb.yaml includes a dedicated load balancer (ALB). You can then use a separate domain name for each service.

Using the cluster’s load balancer and path based routing

This template describes a fault tolerant and scalable ECS service that uses the cluster’s load balancer and path based routing.

Architecture


Looking for a new challenge?

  • tecRacer

    Cloud Consultant

    tecRacer • Premier AWS Consulting Partner • Germany, Austria, Portugal, and Switzerland
    AWS only Infrastructure as Code EC2 Containers Serverless
  • tecRacer

    Cloud Migration Specialist

    tecRacer • Premier AWS Consulting Partner • Germany, Austria, Portugal, and Switzerland
    Lift&Shift Transformation EC2 RDS VPC

The diagram was created with Cloudcraft - Visualize your cloud architecture like a pro.

Install free template

Using a dedicated load balancer for the service

This template describes a fault tolerant and scalable ECS service that uses a dedicated load balancer for the service.

Architecture

The diagram was created with Cloudcraft - Visualize your cloud architecture like a pro.

Install free template

VPC legacy wrapper

If you have an existing VPC you can wrap it into our required form using a legacy VPC wrapper.

Install free template

Automated tests

The goal of the tests is to ensure that our templates are always working. The test are implemented in Java 8 and run in JUnit 4.

If you run this tests, many AWS CloudFormation tests are created and charges will apply!

widdix GmbH sponsors the test runs on every push and once per week to ensure that everything is working as expected.

Discover the tests

Support

We offer support for our CloudFormation templates: setting up environments based on our templates, adopting templates to specific use cases, resolving issues in production environments. Hire us!

Become a cloudonaut supporter

Michael Wittig

Michael Wittig ( Email, Twitter, or LinkedIn )

We launched the cloudonaut blog in 2015. Since then, we have published 350 articles, 45 podcast episodes, and 38 videos. It's all free and means a lot of work in our spare time. We enjoy sharing our AWS knowledge with you.

Please support us

Have you learned something new by reading, listening, or watching our content? With your help, we can spend enough time to keep publishing great content in the future. Learn more

$
Amount must be a multriply of 5. E.g, 5, 10, 15.

Thanks to Alan Leech, Alex DeBrie, ANTHONY RAITI, Christopher Hipwell, Jaap-Jan Frans, Jason Yorty, Jeff Finley, Jens Gehring, jhoadley, Johannes Grumböck, John Culkin, Jonas Mellquist, Juraj Martinka, Kamil Oboril, Ken Snyder, Ross Mohan, Ross Mohan, sam onaga, Satyendra Sharma, Shawn Tolidano, Thorsten Hoeger, Todd Valentine, Victor Grenu, and all anonymous supporters for your help! We also want to thank all supporters who purchased a cloudonaut t-shirt.