aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.terraform/terraform-aws-subnet/example/main.tf
blob: 98f8613876227f6435ff1c2b0ef34dac3c0dcf7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module "vpc" {
  source                   = "../../terraform-aws-vpc"
  security_group_name      = "terraform-sg"
  subnet_availability_zone = "us-east-1a"
  tags_name                = "terraform-vpc"
  tags_environment         = "terraform-vpc-environment"
}

module "subnet" {
  source                   = "../"
  subnet_cidr_block        = "192.168.10.0/24"
  subnet_ipv6_cidr_block   = cidrsubnet(module.vpc.vpc_ipv6_cidr_block, 8, 1)
  subnet_availability_zone = "us-east-1a"
  tags_name                = "terraform-subnet"
  tags_environment         = "terraform-subnet-environment"
  subnet_vpc_id            = module.vpc.vpc_id
}