Skip to content

Commit

Permalink
fix: output error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
d4kverma committed Oct 4, 2023
1 parent 3aee498 commit 117cc64
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
output "prefix_list_id" {
value = var.prefix_list_enabled && length(var.prefix_list_ids) < 1 ? aws_ec2_managed_prefix_list.prefix_list[0].id : null
value = var.enable && var.prefix_list_enabled && length(var.prefix_list_ids) < 1 ? aws_ec2_managed_prefix_list.prefix_list[0].id : null
description = "The ID of the prefix list."
}

output "security_group_id" {
value = var.new_sg ? aws_security_group.default[0].id : null
value = var.new_sg && var.enable ? aws_security_group.default[0].id : null
description = "IDs on the AWS Security Groups associated with the instance."
}

output "security_group_arn" {
value = var.new_sg ? aws_security_group.default[0].arn : null
value = var.new_sg && var.enable ? aws_security_group.default[0].arn : null
description = "IDs on the AWS Security Groups associated with the instance."
}

output "security_group_tags" {
value = var.new_sg ? aws_security_group.default[0].tags : null
value = var.new_sg && var.enable ? aws_security_group.default[0].tags : null
description = "A mapping of public tags to assign to the resource."
}

0 comments on commit 117cc64

Please sign in to comment.