Using Terraform to configure an AWS environment
The MallBots application is going to be run from AWS Elastic Kubernetes Service (EKS), a managed Kubernetes environment. The IaC to create the infrastructure is going to be found in the /
deployment/infrastructure
directory.
We will be configuring a small typical AWS environment across two Availability Zones (AZs):
Figure 11.5 – Our AWS infrastructure
In the infrastructure directory, there are several Terraform files. Altogether, they are going to be used to set up the following in AWS:
- Docker repositories with Elastic Container Service (ECS). We will be uploading the built microservice images here.
- A Kubernetes cluster in EKS. We will be deploying our application here from images stored in ECS.
- A PostgreSQL database using Relational Database Service (RDS). A single instance will serve all of the microservice databases and schemas.
- Additional components such as a Virtual Private Cloud...