Skip to content

Commit

Permalink
fmt: fix testing against an empty collection in the outputs
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Wessels Beljaars <[email protected]>
  • Loading branch information
stefanwb committed Mar 4, 2024
1 parent 34a8519 commit 63158b0
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 @@ -24,7 +24,7 @@ output "role_arn" {
}

output "security_group_id" {
value = var.subnet_ids != null && var.security_group_config.ids == [] ? aws_security_group.default[0].id : ""
value = var.subnet_ids != null && length(var.security_group_config.ids) == 0 ? aws_security_group.default[0].id : ""
description = "If the Lambda is deployed into a VPC this will output the security group id"
}

Expand Down

0 comments on commit 63158b0

Please sign in to comment.