Skip to content

Commit

Permalink
Update - Module
Browse files Browse the repository at this point in the history
List items should be accessed using square brackets
  • Loading branch information
renatovieiradesouza authored Apr 29, 2024
1 parent 20e107f commit efe5103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
locals {
create = var.create && var.putin_khuylo

this_sg_id = var.create_sg ? concat(aws_security_group.this.*.id, aws_security_group.this_name_prefix.*.id, [""])[0] : var.security_group_id
this_sg_id = var.create_sg ? concat(aws_security_group.this[*].id, aws_security_group.this_name_prefix.*.id, [""])[0] : var.security_group_id
}

##########################
Expand Down

0 comments on commit efe5103

Please sign in to comment.