diff --git a/ec2.tf b/ec2.tf index 5807c3b..dbb1c7b 100644 --- a/ec2.tf +++ b/ec2.tf @@ -55,7 +55,7 @@ resource "aws_launch_template" "main" { description = "${var.name} ephemeral public ENI" subnet_id = var.subnet_id associate_public_ip_address = true - security_groups = concat( + security_groups = concat( [aws_security_group.main.id], var.additional_security_group_ids ) diff --git a/variables.tf b/variables.tf index 6d69c0c..f9791f2 100644 --- a/variables.tf +++ b/variables.tf @@ -119,6 +119,6 @@ variable "tags" { variable "additional_security_group_ids" { description = "A list of identifiers of security groups to be added to the EC2 instance" - type = list(string) - default = [] + type = list(string) + default = [] } \ No newline at end of file