UPD: minor updates
This commit is contained in:
parent
408efc4403
commit
7169d18aab
@ -1,15 +1,20 @@
|
|||||||
data "aws_availability_zones" "available" {}
|
data "aws_availability_zones" "available" {}
|
||||||
|
|
||||||
resource "random_string" "suffix" {
|
#resource "random_string" "suffix" {
|
||||||
length = 4
|
# length = 4
|
||||||
special = false
|
# special = false
|
||||||
|
#}
|
||||||
|
|
||||||
|
resource "random_integer" "suffix" {
|
||||||
|
min = 1000
|
||||||
|
max = 9999
|
||||||
}
|
}
|
||||||
|
|
||||||
module "vpc" {
|
module "vpc" {
|
||||||
source = "terraform-aws-modules/vpc/aws"
|
source = "terraform-aws-modules/vpc/aws"
|
||||||
version = "2.6.0"
|
version = "2.6.0"
|
||||||
|
|
||||||
name = "demo-vpc-${random_string.suffix.result}"
|
name = "demo-vpc-${random_integer.suffix.result}"
|
||||||
cidr = "172.16.0.0/16"
|
cidr = "172.16.0.0/16"
|
||||||
azs = data.aws_availability_zones.available.names
|
azs = data.aws_availability_zones.available.names
|
||||||
private_subnets = ["172.16.1.0/24", "172.16.2.0/24", "172.16.3.0/24"]
|
private_subnets = ["172.16.1.0/24", "172.16.2.0/24", "172.16.3.0/24"]
|
||||||
|
Loading…
Reference in New Issue
Block a user