Terraform your EKS fleet - PART 2
Blog post from Qovery
The text provides a detailed guide on using Terraform and Terragrunt to provision resources on AWS, specifically focusing on creating a Virtual Private Cloud (VPC) and an EC2 instance. It begins by outlining prerequisites, including having an AWS account and familiarity with Terraform, an Infrastructure as Code (IaC) tool. The text explains the concept of providers and modules in Terraform, highlighting the use of community modules for efficient resource provisioning. The reader is guided through creating a VPC using a community module, checking changes with `terraform plan`, and applying changes with `terraform apply`. The text also covers accessing AWS credentials, modifying resources, and utilizing Terraform State to track resource changes. For EC2 instance creation, it introduces using outputs from one module as inputs for another and concludes by demonstrating resource cleanup with `terraform destroy`. The narrative emphasizes the advantages of IaC, such as reducing manual clicks in the AWS console and simplifying scripting challenges, and hints at further exploration of custom modules and Terragrunt for code reusability.