Skip to content

Commit 24183bb

Browse files
committed
feat: return empty strings for outputs if module is disabled
1 parent 56c59df commit 24183bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

outputs.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
output "lambda_function_arn" {
22
description = "The ARN of the EIP manager Lambda function"
3-
value = aws_lambda_function.this[0].arn
3+
value = module.this.enabled ? aws_lambda_function.this[0].arn : ""
44
}
55

66
output "iam_role_arn" {
77
description = "The ARN of the IAM role used by the EIP manager Lambda function"
8-
value = aws_iam_role.this[0].arn
8+
value = module.this.enabled ? aws_iam_role.this[0].arn : ""
99
}

0 commit comments

Comments
 (0)