
Terragrunt Tutorial: Create VPC, EKS from Scratch!
Source: YouTube · Anton Putra · published Apr 15, 2023 · 1:01:09
This tutorial demonstrates how to create a well-structured AWS infrastructure using Terraform and Terragrunt 0:00. The instructor shows how to build VPC, EKS, and Kubernetes add-ons modules while following best practices for infrastructure as code 0:18.
Key Takeaways:
• The tutorial progresses from basic Terraform code to modular design and finally to Terragrunt implementation, showing how to keep code DRY across environments 2:06
• VPC creation includes proper subnet tagging for EKS, with both public and private subnets across multiple availability zones 5:32
• Terragrunt offers significant advantages including sharing outputs between modules, maintaining consistent backend configurations, and executing commands across multiple modules simultaneously 1:24
• Production-ready setup includes S3 bucket for state storage, DynamoDB for state locking, and IAM roles for secure infrastructure deployment 50:12
The tutorial concludes with a comprehensive setup that can be replicated across multiple environments while maintaining code reusability and following DevOps best practices 49:54.
Sources:
- 0:00 Introduction to the tutorial covering Terraform, modules, and Terragrunt
- 0:18 Overview of infrastructure components to be built
- 1:24 Terragrunt features for managing multiple modules
- 2:06 Code organization approaches for different environments
- [5:32](https://www.youtube.com/watch?v=yduHaO
Generate CPE Credits
Generate a professional CPE document from this video's transcript.
Estimated credit: 1 CPE hours
Estimate uses the video runtime (1 hour ≈ 1 CPE, rounded to the nearest 0.5, minimum 0.5, maximum 2.0). The final amount can be lower after review, never higher.
Topic: Cloud Security. Commonly maps to: Security Architecture and Engineering, Communication and Network Security. Exact CISSP domains are assigned during generation.
Free account. One generation at a time, with a daily limit.
CPEBuddy is independent and not affiliated with or endorsed by ISC2, ISACA, or any certification body. Exports are formatted for common CPE submissions; acceptance is at your certification body's discretion.
Transcript Preview
First 800 characters of the transcript
In this tutorial, I'll guide you step by step on
how to create a VPC using plain Terraform code. Next, we'll refactor it into a well-structured
Terraform module by following best practices. Finally, we'll make use of Terragrunt's
top features to set up your infrastructure. We'll not only build a VPC module, but also
create EKS and Kubernetes add-ons modules from scratch. With the Kubernetes add-ons
module, you can easily enable managed add-ons like the CSI storage driver, or self-managed
add-ons such as the cluster autoscaler, load balancer controller, ArgoCD,
and others deployed as Helm charts. In this tutorial, you'll learn many valuable
techniques and best practices for creating Terraform modules, even if you don't end up using
Terragrunt in your projects. Towards the end, I'll…