Creating an application database using RDS
The sample todobackend application includes a MySQL database that is used to persist todo items that are created through the application API. When you first set up and ran the sample application back in Chapter 1, you used a Docker container to provide the application database, however, in production-grade environments, it is generally considered best practice to run databases, and other services that provide persistent storage, on dedicated machines optimized specifically for database and data access operations. One such service in AWS is the relational database services (RDS), which provides dedicated managed instances optimized for providing popular relational database engines, including MySQL, Postgres, SQL Server, and Oracle. RDS is a very mature and robust service, and is very commonly used to support database requirements for both ECS and other applications that are run in AWS.
RDS instances can be configured using CloudFormation. To get started...