DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Software Design and Architecture
  3. Cloud Architecture
  4. CloudFormation Templates: ECS Cluster and Service, Legacy VPC Wrapper, and Automated Tests

CloudFormation Templates: ECS Cluster and Service, Legacy VPC Wrapper, and Automated Tests

In the latest batch of free Wittig CloudFormation templates, easily work with containerized projects with ECS, wrap a VPC into a needed format, and a new test suite.

Michael Wittig user avatar by
Michael Wittig
·
Mar. 10, 17 · News
Like (2)
Save
Tweet
Share
8.35K Views

Join the DZone community and get the full member experience.

Join For Free

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

  • New templates for containerized workloads with ECS.
  • New templates to wrap an existing VPC into the format that is needed by all our templates.
  • Test suite that we run on every commit to ensure that the templates are still working.

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:

  • Docker image published to Docker Hub or EC2 Container Registry (ECR)
  • ECS cluster
  • ECS service

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

Install the 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

Install the 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

Install the 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 the free template.

Automated Tests

The goal of the tests is to ensure that our templates are always working. The tests 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

Entity component system Docker (software) Virtual private cloud Template Testing

Published at DZone with permission of Michael Wittig. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Best Practices for Writing Clean and Maintainable Code
  • Problems of Cloud Cost Management: A Socio-Technical Analysis
  • GPT-3 Playground: The AI That Can Write for You
  • Implementing Infinite Scroll in jOOQ

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: