File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11output "prefix_list_id" {
2- value = var. prefix_list_enabled && length (var. prefix_list_ids ) < 1 ? aws_ec2_managed_prefix_list. prefix_list [0 ]. id : null
2+ value = var. enable && var . prefix_list_enabled && length (var. prefix_list_ids ) < 1 ? aws_ec2_managed_prefix_list. prefix_list [0 ]. id : null
33 description = " The ID of the prefix list."
44}
55
66output "security_group_id" {
7- value = var. new_sg ? aws_security_group. default [0 ]. id : null
7+ value = var. new_sg && var . enable ? aws_security_group. default [0 ]. id : null
88 description = " IDs on the AWS Security Groups associated with the instance."
99}
1010
1111output "security_group_arn" {
12- value = var. new_sg ? aws_security_group. default [0 ]. arn : null
12+ value = var. new_sg && var . enable ? aws_security_group. default [0 ]. arn : null
1313 description = " IDs on the AWS Security Groups associated with the instance."
1414}
1515
1616output "security_group_tags" {
17- value = var. new_sg ? aws_security_group. default [0 ]. tags : null
17+ value = var. new_sg && var . enable ? aws_security_group. default [0 ]. tags : null
1818 description = " A mapping of public tags to assign to the resource."
1919}
You can’t perform that action at this time.
0 commit comments