Skip to content

Terraform Exercise using Public Available VPC Module

License

Notifications You must be signed in to change notification settings

nuvibit/terraform-workshop-e3-vpc-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

terraform-workshop-e3-vpc-module

Learn Terraform Exercise using 3rd party AWS module

CC BY-NC-SA 4.0

Goals of this Exercise:

  • Learn to use 3rd party AWS terraform modules

🚧 -> 🚀

Terraform workflow:

terraform fmt
terraform init
terraform validate
terraform plan -out my-tf-plan.tfplan
terraform apply my-tf-plan.tfplan
terraform destroy

Thirdparty VPC Module

In this exercise, we use the AWS VPC Module crafted by Anton Babenko.

https://registry.terraform.io/modules/terraform-aws-modules/vpc/

We are using the VPC module 4 times

  • VPC E3a with fixed EIPs, single NAT per VPC
  • VPC E3b with all networks, single NAT
  • VPC E3c with public reachable Database Network
  • VPC E3d with IPv6

Debug and Fix

  • Checkout Git Branch fixme_1 and try to fix the setup
  • Checkout Git Branch fixme_2 and try to fix the setup

Enhancement

  • Create a new main.tf with only 1 VPC in eu-central-1, consiting of
    • public_subnet,
    • private_subnet,
    • intra_subnets,
    • flowlogs,
    • and as a bonus private endpoints (ssm, ec2, kms)

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

CC BY-NC-SA 4.0

About

Terraform Exercise using Public Available VPC Module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages