Skip to content

Commit

Permalink
Wrong output index
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin committed Nov 24, 2021
1 parent 07c9e5d commit 965ce72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 965ce72

Please sign in to comment.