diff --git a/outputs.tf b/outputs.tf index fe11cfd..4ede59c 100644 --- a/outputs.tf +++ b/outputs.tf @@ -5,7 +5,7 @@ output "instance_id" { output "instance_sg_id" { description = "ID of the instance created" - value = length(aws_security_group.instance[*].id) > 0 ? aws_security_group.instance[9].id : null + value = length(aws_security_group.instance[*].id) > 0 ? aws_security_group.instance[0].id : null } output "private_ip" {