Skip to content

Commit

Permalink
Added variable for cidr block
Browse files Browse the repository at this point in the history
  • Loading branch information
qtsathish committed Mar 1, 2021
1 parent 3a83950 commit 65d274a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Feb21/ntier-tf-aws/main.tf
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ variable "region" {


} }


variable "vpccidr" {
type = string
default = "192.168.0.0/16"
}


# we need to create a vpc resource # we need to create a vpc resource
resource "aws_vpc" "ntiervpc" { resource "aws_vpc" "ntiervpc" {
cidr_block = "192.168.0.0/16" cidr_block = var.vpccidr
enable_dns_support = true enable_dns_support = true
enable_dns_hostnames = true enable_dns_hostnames = true


Expand Down

0 comments on commit 65d274a

Please sign in to comment.