Creating an ECS service for MySQL database

In this section, we shall create an ECS definition for a MySQL database to demonstrate logging. Any Docker image could be used; the MySQL database image was chosen because several log events are generated when MySQL database is inited, installed, and configured. Another Docker image, such as tutum/hello-world, does not generate very many log events.

  1. Open URL in a browser and click on Get started with Amazon ECS. The ECS console starts up.
  2. Click on Get started to start the wizard to create new container and task definitions, and a new service. By default, the ECS wizard is based on the Fargate launch type. The diagram of ECS objects is displayed.

The ECS objects are discussed in Chapter 1, Getting ...

Get Amazon Fargate Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.