UPD: minor updates
This commit is contained in:
parent
408efc4403
commit
7169d18aab
@ -1,15 +1,20 @@
|
||||
data "aws_availability_zones" "available" {}
|
||||
|
||||
resource "random_string" "suffix" {
|
||||
length = 4
|
||||
special = false
|
||||
#resource "random_string" "suffix" {
|
||||
# length = 4
|
||||
# special = false
|
||||
#}
|
||||
|
||||
resource "random_integer" "suffix" {
|
||||
min = 1000
|
||||
max = 9999
|
||||
}
|
||||
|
||||
module "vpc" {
|
||||
source = "terraform-aws-modules/vpc/aws"
|
||||
version = "2.6.0"
|
||||
|
||||
name = "demo-vpc-${random_string.suffix.result}"
|
||||
name = "demo-vpc-${random_integer.suffix.result}"
|
||||
cidr = "172.16.0.0/16"
|
||||
azs = data.aws_availability_zones.available.names
|
||||
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