UPD: minor updates

This commit is contained in:
xpk 2020-06-28 16:14:23 +08:00
parent 408efc4403
commit 7169d18aab
Signed by: xpk
GPG Key ID: CD4FF6793F09AB86

View File

@ -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"]