Technical requirements
In this section, we'll be deploying a full Consul cluster to Amazon Web Services (AWS) using Terraform. If you've already gone through Chapter 2, Architecture – How Does It Work?, set up your AWS account, downloaded Terraform, and cloned the repository, you're in great shape!
Within the ch6
folder of the repository, we have a similar structure as for the ch2
folder, providing the code for creating the image and, of course, creating the Consul cluster. If you would like to follow along, use ch6
to create a new Consul cluster, which includes some of the service configuration files you'll utilize within this chapter.
Before we walk through the code and functionality within this chapter, it might be useful to revisit Chapter 2, Architecture – How Does It Work? and review the steps required to deploy and access our infrastructure.