@@ -8,123 +8,50 @@ locals
8
8
ecosystem_id = " sgrules-test"
9
9
}
10
10
11
- module vpc- subnets
12
- {
13
- source = " github.com/devops-ip/terraform-aws-vpc-subnets"
14
- in_vpc_cidr = " 10.123.0.0/16"
15
- in_ecosystem = " ${ local . ecosystem_id } "
16
- }
17
-
18
11
module zero- param- test
19
12
{
20
- source = " .."
13
+ source = " .."
21
14
}
22
15
23
- /*
24
- module last-stable-release-test-0
16
+ module vpc- 1
25
17
{
26
- source = "github.com/devops-ip/terraform-aws-security-group?ref=v0.1.0001 "
27
- in_ingress = [ "ssh", "http", "https" ]
28
- in_ecosystem = "${local.ecosystem_id}-00 "
18
+ source = " github.com/devops-ip/terraform-aws-vpc-subnets "
19
+ in_vpc_cidr = " 10.123.0.0/16 "
20
+ in_ecosystem = " ${ local . ecosystem_id } "
29
21
}
30
- */
31
22
32
23
module security- group- test- 1
33
24
{
34
- source = " .."
35
- in_vpc_id = " ${ module . vpc-subnets . out_vpc_id } "
25
+ source = " .."
26
+ in_ingress = [ " ssh" , " http" , " https" ]
27
+ in_vpc_id = " ${ module . vpc-1 . out_vpc_id } "
36
28
in_use_default = " true"
37
29
in_ecosystem = " ${ local . ecosystem_id } -01"
38
30
}
39
31
40
- module security- group- test- 2
41
- {
42
- source = " .."
43
- in_vpc_id = " ${ module . vpc-subnets . out_vpc_id } "
44
- in_use_default = " true"
45
- # #################### in_use_default = "false"
46
- in_ecosystem = " ${ local . ecosystem_id } -02"
47
- }
48
-
49
- /*
50
- module vpc-subnets-test-2
51
- {
52
- source = "github.com/devops-ip/terraform-aws-vpc-subnets"
53
- version = "~> v0.1.0"
54
- in_vpc_cidr = "10.15.0.0/18"
55
- in_subnets_max = "4"
56
- in_ecosystem = "${local.ecosystem_id}-02"
57
- }
58
-
59
- module vpc-subnets-test-3
32
+ module vpc- 2
60
33
{
61
- source = "github.com/devops-ip/terraform-aws-vpc-subnets"
62
- in_vpc_cidr = "10.63.0.0/20"
63
- in_subnets_max = "6"
64
- in_ecosystem = "${local.ecosystem_id}-03"
65
- }
66
-
67
- module vpc-subnets-test-4
68
- {
69
- source = "github.com/devops-ip/terraform-aws-vpc-subnets"
70
- in_vpc_cidr = "10.255.0.0/21"
71
- in_num_private_subnets = 8
72
- in_num_public_subnets = 7
73
- in_subnets_max = "7"
74
- in_ecosystem = "${local.ecosystem_id}-04"
75
- }
76
-
77
- module vpc-subnets-test-5
78
- {
79
- source = "github.com/devops-ip/terraform-aws-vpc-subnets"
80
- in_vpc_cidr = "10.242.0.0/16"
81
- in_num_private_subnets = 0
82
- in_num_public_subnets = 0
83
- in_ecosystem = "${local.ecosystem_id}-05"
84
- }
85
-
86
- module vpc-subnets-test-6
87
- {
88
- source = "github.com/devops-ip/terraform-aws-vpc-subnets"
89
- in_vpc_cidr = "10.243.0.0/16"
90
- in_num_private_subnets = 0
91
- in_ecosystem = "${local.ecosystem_id}-06"
34
+ source = " github.com/devops-ip/terraform-aws-vpc-subnets"
35
+ in_vpc_cidr = " 10.124.0.0/16"
36
+ in_ecosystem = " ${ local . ecosystem_id } "
92
37
}
93
38
94
- module vpc-subnets -test-7
39
+ module security - group - test- 2
95
40
{
96
- source = ".."
97
- in_vpc_cidr = "10.244.0.0/16"
98
- in_num_public_subnets = 0
99
- in_ecosystem = "${local.ecosystem_id}-07"
41
+ source = " .."
42
+ in_ingress = [ " elasticsearch" , " ssh" , " java" ]
43
+ in_egress = [ " all-traffic" ]
44
+ in_vpc_id = " ${ module . vpc-2 . out_vpc_id } "
45
+ in_use_default = " false"
46
+ in_ecosystem = " ${ local . ecosystem_id } -02"
100
47
}
101
48
102
- module vpc-subnets-test-8
49
+ output security_group_id
103
50
{
104
- source = ".."
105
- in_vpc_cidr = "10.245.0.0/16"
106
- in_num_private_subnets = 6
107
- in_num_public_subnets = 6
108
- in_ecosystem = "${local.ecosystem_id}-08"
51
+ value = " ${ module . security-group-test-1 . out_security_group_id } "
109
52
}
110
53
111
- module vpc-subnets-test-9
54
+ output security_group_ids
112
55
{
113
- source = ".."
114
- in_vpc_cidr = "10.31.0.0/22"
115
- in_num_private_subnets = 2
116
- in_num_public_subnets = 8
117
- in_subnets_max = "5"
118
- in_ecosystem = "${local.ecosystem_id}-09"
56
+ value = " ${ module . security-group-test-2 . out_security_group_ids } "
119
57
}
120
-
121
- */
122
-
123
- /*
124
- output subnet_ids_1{ value = "${module.vpc-subnets.out_subnet_ids}" }
125
- output private_subnet_ids_1{ value = "${module.vpc-subnets.out_private_subnet_ids}" }
126
- output public_subnet_ids_1{ value = "${module.vpc-subnets.out_public_subnet_ids}" }
127
-
128
- output security_group_id_1 { value = "${module.security-group-test-1.out_security_group_id}" }
129
- output security_group_ids_1{ value = "${module.security-group-test-1.out_security_group_ids}" }
130
- */
0 commit comments