Giter VIP home page Giter VIP logo

aws-ecs-workshop-wordpress's Introduction

Getting Started with ECS

Overview

This lab introduces the basics of working with microservices and ECS. This includes: setting up the initial ECS cluster, deploying the WordPress and MySQL container from DockerHub, service discovery via Route53 and deployment of the containers with traffic routed through an ALB.

Note: You should have containers and Docker knowledge before attempting this lab. You should know the basics of creating a Docker file and a Docker image, and checking in the image into a Docker registry. Otherwise, please complete part 1 and 2 of the Get Started with Docker tutorial.

The lab architecture is as shown below. WordPress and MySQL containers shall be deployed using AWS Fargate, which allows you to run containers without managing servers. We shall deploy one instance of MySQL container and 2 instances of WordPress. MySQL container registers with a Route53 private hosted zone. WordPress discovers the MySQL via a service lookup to Route53. We will use an Application load balancer to route the requests to WordPress.

img1

Note: MySQL is deployed in containers here to illustrate how Microservices in containers can discover one another. It is not recommended to run databases in containers in a production environment. Docker containers are designed to run stateless applications instead of stateful applications. Database services provided by your cloud provider are the best way to go for production (and that means also staging due to prod/staging parity) databases. Use RDS if you’re on AWS. This will simplify a lot of management tasks such as updating minor versions, handling regular backups and even scaling up.

You'll need to have a working AWS account to use this lab.

aws-ecs-workshop-wordpress's People

Watchers

James Cloos avatar Wayne  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.