|
| 1 | + |
| 2 | +### ################################################# ### |
| 3 | +### [[test-module]] testing terraform-aws-vpc-subnets ### |
| 4 | +### ################################################# ### |
| 5 | + |
| 6 | +locals |
| 7 | +{ |
| 8 | + ecosystem_id = "vs-unittest" |
| 9 | +} |
| 10 | + |
| 11 | +module zero-param-test |
| 12 | +{ |
| 13 | + source = "github.com/devops-ip/terraform-aws-vpc-subnets" |
| 14 | +} |
| 15 | + |
| 16 | +module last-stable-release-test-0 |
| 17 | +{ |
| 18 | + source = "github.com/devops-ip/terraform-aws-vpc-subnets?ref=v0.1.0002" |
| 19 | + in_vpc_cidr = "10.234.56.0/24" |
| 20 | + in_ecosystem = "${local.ecosystem_id}-00" |
| 21 | +} |
| 22 | + |
| 23 | +module vpc-subnets-test-1 |
| 24 | +{ |
| 25 | + source = "github.com/devops-ip/terraform-aws-vpc-subnets" |
| 26 | + version = "v0.1.0002" |
| 27 | + in_vpc_cidr = "10.234.0.0/16" |
| 28 | + in_ecosystem = "${local.ecosystem_id}-01" |
| 29 | +} |
| 30 | + |
| 31 | +module vpc-subnets-test-2 |
| 32 | +{ |
| 33 | + source = "github.com/devops-ip/terraform-aws-vpc-subnets" |
| 34 | + version = "~> v0.1.0" |
| 35 | + in_vpc_cidr = "10.15.0.0/18" |
| 36 | + in_subnets_max = "4" |
| 37 | + in_ecosystem = "${local.ecosystem_id}-02" |
| 38 | +} |
| 39 | + |
| 40 | +module vpc-subnets-test-3 |
| 41 | +{ |
| 42 | + source = "github.com/devops-ip/terraform-aws-vpc-subnets" |
| 43 | + in_vpc_cidr = "10.63.0.0/20" |
| 44 | + in_subnets_max = "6" |
| 45 | + in_ecosystem = "${local.ecosystem_id}-03" |
| 46 | +} |
| 47 | + |
| 48 | +module vpc-subnets-test-4 |
| 49 | +{ |
| 50 | + source = "github.com/devops-ip/terraform-aws-vpc-subnets" |
| 51 | + in_vpc_cidr = "10.255.0.0/21" |
| 52 | + in_num_private_subnets = 8 |
| 53 | + in_num_public_subnets = 7 |
| 54 | + in_subnets_max = "7" |
| 55 | + in_ecosystem = "${local.ecosystem_id}-04" |
| 56 | +} |
| 57 | + |
| 58 | +module vpc-subnets-test-5 |
| 59 | +{ |
| 60 | + source = "github.com/devops-ip/terraform-aws-vpc-subnets" |
| 61 | + in_vpc_cidr = "10.242.0.0/16" |
| 62 | + in_num_private_subnets = 0 |
| 63 | + in_num_public_subnets = 0 |
| 64 | + in_ecosystem = "${local.ecosystem_id}-05" |
| 65 | +} |
| 66 | + |
| 67 | +module vpc-subnets-test-6 |
| 68 | +{ |
| 69 | + source = "github.com/devops-ip/terraform-aws-vpc-subnets" |
| 70 | + in_vpc_cidr = "10.243.0.0/16" |
| 71 | + in_num_private_subnets = 0 |
| 72 | + in_ecosystem = "${local.ecosystem_id}-06" |
| 73 | +} |
| 74 | + |
| 75 | +module vpc-subnets-test-7 |
| 76 | +{ |
| 77 | + source = ".." |
| 78 | + in_vpc_cidr = "10.244.0.0/16" |
| 79 | + in_num_public_subnets = 0 |
| 80 | + in_ecosystem = "${local.ecosystem_id}-07" |
| 81 | +} |
| 82 | + |
| 83 | +module vpc-subnets-test-8 |
| 84 | +{ |
| 85 | + source = ".." |
| 86 | + in_vpc_cidr = "10.245.0.0/16" |
| 87 | + in_num_private_subnets = 6 |
| 88 | + in_num_public_subnets = 6 |
| 89 | + in_ecosystem = "${local.ecosystem_id}-08" |
| 90 | +} |
| 91 | + |
| 92 | +module vpc-subnets-test-9 |
| 93 | +{ |
| 94 | + source = ".." |
| 95 | + in_vpc_cidr = "10.31.0.0/22" |
| 96 | + in_num_private_subnets = 2 |
| 97 | + in_num_public_subnets = 8 |
| 98 | + in_subnets_max = "5" |
| 99 | + in_ecosystem = "${local.ecosystem_id}-09" |
| 100 | +} |
| 101 | + |
| 102 | +output subnet_ids_1{ value = "${module.vpc-subnets-test-1.out_subnet_ids}" } |
| 103 | +output private_subnet_ids_1{ value = "${module.vpc-subnets-test-1.out_private_subnet_ids}" } |
| 104 | +output public_subnet_ids_1{ value = "${module.vpc-subnets-test-1.out_public_subnet_ids}" } |
| 105 | + |
| 106 | +output subnet_ids_2{ value = "${module.vpc-subnets-test-6.out_subnet_ids}" } |
| 107 | +output private_subnet_ids_2{ value = "${module.vpc-subnets-test-6.out_private_subnet_ids}" } |
| 108 | +output public_subnet_ids_2{ value = "${module.vpc-subnets-test-6.out_public_subnet_ids}" } |
| 109 | + |
| 110 | +output subnet_ids_3{ value = "${module.vpc-subnets-test-7.out_subnet_ids}" } |
| 111 | +output private_subnet_ids_3{ value = "${module.vpc-subnets-test-7.out_private_subnet_ids}" } |
| 112 | +output public_subnet_ids_3{ value = "${module.vpc-subnets-test-7.out_public_subnet_ids}" } |
| 113 | + |
| 114 | +output subnet_ids_4{ value = "${module.vpc-subnets-test-9.out_subnet_ids}" } |
| 115 | +output private_subnet_ids_4{ value = "${module.vpc-subnets-test-9.out_private_subnet_ids}" } |
| 116 | +output public_subnet_ids_4{ value = "${module.vpc-subnets-test-9.out_public_subnet_ids}" } |
0 commit comments