Skip to content

Commit 968b4ce

Browse files
authored
Merge pull request #2 from getindata/fix--fix-output-when-module-disabled
fix: Set snowflake_privatelink_url.url output to null when module disabled
2 parents b81d242 + dc2d450 commit 968b4ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ output "snowflake_privatelink_url" {
3737
description = "URL to access Snowflake using AWS PrivateLink"
3838
value = {
3939
fqdn = one(resource.aws_route53_record.snowflake_private_link_url[*].fqdn)
40-
url = "https://${one(resource.aws_route53_record.snowflake_private_link_url[*].fqdn)}"
40+
url = module.this.enabled ? "https://${one(resource.aws_route53_record.snowflake_private_link_url[*].fqdn)}" : null
4141
}
4242
}
4343

0 commit comments

Comments
 (0)