Deploying Applications to the Cloud
In this book, we have worked with the MallBots application as a modular monolith and have only experienced running it locally using docker compose
. In this chapter, we will be breaking the application into microservices. We will update the Docker Compose file so that we can run either the monolith or the microservices. Then, we will use Terraform, an Infrastructure as Code (IaC) tool, to stand up an environment in AWS and deploy the application there.
In this chapter, we are going to cover the following topics:
- Turning the modular monolith into microservices
- Installing the necessary DevOps tools
- Using Terraform to configure an AWS environment
- Deploying the application to AWS with Terraform