Terraform + AWS, part 7.5 | Locals | Locals with objects | Beginner’s tutorial
Mihai Code 200
References: • [r1] Resource: aws_vpc https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc • [r2] The for_each Meta-Argument https://developer.hashicorp.com/terraform/language/meta-arguments/for_each • [r3] lookup Function https://developer.hashicorp.com/terraform/language/functions/lookup • Tutorial repository https://github.com/DomnMihai/terraform-aws-beginner-tutorial • Tutorial playlist https://www.youtube.com/playlist?list=PLUkmsirrp5avw-Iu4qUBXmmP79b924NE9
Chapters: 00:00 Create local vpc_setup 00:43 Create environment input variable 01:24 Create fields in dev map
01:50 Manually create AWS VPC 03:04 Define VPC resource in terraform 04:05 Manually create AWS VPC Subnet 07:51 Define VPC Subnet resource in terraform (dev) 10:19 terraform apply for dev environment 11:16 Check created VPC (dev) 12:03 Define second Subnet for dev environment 12:22 terraform apply for the second Subnet in dev environment 12:54 Check created Subnets (dev)
13:12 Define Subnets in terraform (stg) 16:54 terraform apply for stg environment 18:14 Check created VPC and Subnets (stg)
19:18 Check terraform state file 20:19 Commit and push
Special thanks to: • Audacity • Canva • Kdenlive • OBS
486955814 Bytes