Deploying a distributed EKS cluster with Terraform
In the last chapter, we used Infrastructure As Code (IaC) written in AWS CloudFormation. In this chapter, we will use a different tool – HashiCorp Terraform. It is similar to AWS CloudFormation in that you create template files that describe interrelated infrastructure components you want created in your AWS account.
However, Terraform supports more than just AWS via a lengthy list of providers. This makes it popular with those who need to manage resources in multiple clouds – as well as on-premise elements such as VMware virtual machines or even bare-metal servers. AWS is a strong supporter of Terraform, with over 2 billion downloads of the AWS Terraform provider since 2014.
The IaC provided supports the following 15 US cities: Atlanta, Boston, Chicago, Dallas, Denver, Houston, Las Vegas, Los Angeles, Miami, Minneapolis, New York City, Phoenix, San Francisco, Seattle, and Washington DC.
It also supports the...