Skip to content

Commit 75f9f04

Browse files
authored
fix: Make project_id output dependent on shared_vpc host enablement (#150)
1 parent 3c0a5b2 commit 75f9f04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/vpc/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ output "network_self_link" {
3030
}
3131

3232
output "project_id" {
33-
value = var.project_id
33+
value = var.shared_vpc_host ? coalesce(google_compute_shared_vpc_host_project.shared_vpc_host.*.project...) : google_compute_network.network.project
3434
description = "VPC project id"
3535
}

0 commit comments

Comments
 (0)