Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add explicit dependencies in VPC module #295

Merged
merged 1 commit into from
May 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion modules/network/vpc/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,37 +17,43 @@
output "network_name" {
description = "The name of the network created"
value = module.vpc.network_name
depends_on = [module.firewall_rules, module.cloud_router]
}

output "network_self_link" {
description = "The URI of the VPC being created"
value = module.vpc.network_self_link

depends_on = [module.firewall_rules, module.cloud_router]
}

output "subnetworks" {
description = "All subnetwork resources created by this module"
value = module.vpc.subnets
depends_on = [module.firewall_rules, module.cloud_router]
}

output "subnetwork" {
description = "The primary subnetwork object created by the input variable primary_subnetwork"
value = local.primary_subnetwork
depends_on = [module.firewall_rules, module.cloud_router]
}

output "subnetwork_name" {
description = "The name of the primary subnetwork"
value = local.primary_subnetwork_name
depends_on = [module.firewall_rules, module.cloud_router]
}

output "subnetwork_self_link" {
description = "The self-link to the primary subnetwork"
value = local.primary_subnetwork_self_link
depends_on = [module.firewall_rules, module.cloud_router]
}

output "subnetwork_address" {
description = "The address range of the primary subnetwork"
value = local.primary_subnetwork_ip_cidr_range
depends_on = [module.firewall_rules, module.cloud_router]
}

output "nat_ips" {
Expand Down