@@ -170,14 +170,9 @@ variable "application" {
170170 description = " Name of the application"
171171}
172172
173- variable "security_group_id" {
174- description = " List of security group IDs to attach"
175- type = list (string )
176- }
177-
178173variable "ingress_cidr_block" {
179174 type = list (string )
180- description = " CIDR blocks for EC2 security group ingress rules"
175+ description = " CIDR blocks for the security group ingress rules"
181176}
182177
183178variable "ingress_cidr_from_port" {
@@ -215,6 +210,12 @@ variable "ingress_sg_protocol" {
215210 description = " List of protocols for sg ingress rules"
216211}
217212
213+ variable "ingress_security_group_ids" {
214+ type = list (string )
215+ default = [ " sg-0fe4363da3994c100" ]
216+ description = " List of Security Group ids for sg ingress rules"
217+ }
218+
218219variable "create_ingress_sg" {
219220 type = bool
220221 description = " Enable or disable Security Groups ingress rules."
@@ -260,6 +261,12 @@ variable "egress_sg_protocol" {
260261 type = list (any )
261262}
262263
264+ variable "egress_security_group_ids" {
265+ type = list (string )
266+ default = [ " sg-0fe4363da3994c100" ]
267+ description = " List of Security Group ids for sg egress rules"
268+ }
269+
263270variable "create_egress_sg" {
264271 type = bool
265272 description = " Enable or disable CIDR block egress rules."
@@ -268,7 +275,7 @@ variable "create_egress_sg" {
268275
269276variable "alb_ingress_cidr_block" {
270277 type = list (string )
271- description = " CIDR blocks for EC2 security group ingress rules"
278+ description = " CIDR blocks for the security group ingress rules"
272279}
273280
274281variable "alb_ingress_cidr_from_port" {
@@ -293,17 +300,17 @@ variable "alb_create_ingress_cidr" {
293300
294301variable "alb_ingress_sg_from_port" {
295302 type = list (number )
296- description = " List of starting ports for sg ingress rules of the EC2 security group. "
303+ description = " List of starting ports for sg ingress rules"
297304}
298305
299306variable "alb_ingress_sg_to_port" {
300307 type = list (number )
301- description = " List of ending ports for sg ingress rules of the EC2 security group. "
308+ description = " List of ending ports for sg ingress rules"
302309}
303310
304311variable "alb_ingress_sg_protocol" {
305312 type = list (any )
306- description = " List of protocols for sg ingress rules of the EC2 security group. "
313+ description = " List of protocols for sg ingress rules"
307314}
308315
309316variable "alb_create_ingress_sg" {
@@ -313,7 +320,7 @@ variable "alb_create_ingress_sg" {
313320
314321variable "alb_egress_cidr_block" {
315322 type = list (string )
316- description = " CIDR blocks for EC2 security group egress rules"
323+ description = " CIDR blocks for the security group egress rules"
317324}
318325
319326variable "alb_egress_cidr_from_port" {
@@ -355,13 +362,3 @@ variable "alb_create_egress_sg" {
355362 type = bool
356363 description = " Enable or disable CIDR block egress rules."
357364}
358-
359- variable "sg_name" {
360- type = string
361- description = " Name of the security group for the instance."
362- }
363-
364- variable "alb_sg_name" {
365- type = string
366- description = " Name of the security group for the instance."
367- }
0 commit comments