From 5fefb44d6c7c848f9e21be26c31b1c6476f0ed1b Mon Sep 17 00:00:00 2001 From: Marcio Goda Date: Thu, 15 Aug 2024 11:38:02 +0100 Subject: [PATCH] fixed issue on local --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 04dfec8..2bd43ad 100644 --- a/main.tf +++ b/main.tf @@ -1,5 +1,5 @@ locals { - security_group_ids = var.use_default_sg == true ? [aws_security_group.default.id] : var.security_group_ids + security_group_ids = var.use_default_sg == true ? [data.aws_security_group.default[0].id] : var.security_group_ids } data "aws_security_group" "default" {