Creating the network infrastructure
In Chapter 2, Architecting Production-Grade Kubernetes Infrastructure, you learned in detail about the infrastructure architecture design recommendations and the technical decisions that you should take in relation to the production readiness state for your Kubernetes clusters. In this section, you will use Terraform to provision the network layer of your Kubernetes production infrastructure.
These are the AWS network resources that you will provision with the Terraform code in this section:
- AWS VPC
- Private subnets
- Public subnets
- Route tables
- Internet and NAT gateways
Encapsulating AWS resources into reusable code modules is a recommended IaC practice. In the next subsection, you will create a VPC Terraform module that includes the previous AWS resources. You can then reuse this module with no code changes to provision VPCs for as many Kubernetes clusters as you need.
Developing the VPC Terraform module
Under...