diff --git a/01-benefits-iac/vpc.tf b/01-benefits-iac/vpc.tf index c9d0f70..b8f95c3 100644 --- a/01-benefits-iac/vpc.tf +++ b/01-benefits-iac/vpc.tf @@ -11,7 +11,7 @@ provider "aws" { region = "eu-west-1" } -resource "aws_vpc" "demo_vpc" { +resource "aws_vpc" "Demo_vpc" { cidr_block = "10.0.0.0/16" tags = { @@ -20,21 +20,21 @@ resource "aws_vpc" "demo_vpc" { } resource "aws_subnet" "public_subnet" { - vpc_id = aws_vpc.demo_vpc.id + vpc_id = aws_vpc.Demo_vpc.id cidr_block = "10.0.0.0/24" } resource "aws_subnet" "private_subnet" { - vpc_id = aws_vpc.demo_vpc.id + vpc_id = aws_vpc.Demo_vpc.id cidr_block = "10.0.1.0/24" } resource "aws_internet_gateway" "igw" { - vpc_id = aws_vpc.demo_vpc.id + vpc_id = aws_vpc.Demo_vpc.id } resource "aws_route_table" "public_rtb" { - vpc_id = aws_vpc.demo_vpc.id + vpc_id = aws_vpc.Eemo_vpc.id route { cidr_block = "0.0.0.0/0"