Add support for VPC internal ranges to modules/net-vpc (#3318)
* Add support for VPC internal ranges to modules/net-vpc * Fix linting * Fix variable order * Fix README * Sort outputs. * Fix validation for terraform < 1.13
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Copyright 2024 Google LLC
|
||||
* Copyright 2025 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -31,6 +31,23 @@ output "internal_ipv6_range" {
|
||||
value = try(google_compute_network.network[0].internal_ipv6_range, null)
|
||||
}
|
||||
|
||||
output "internal_range_ids" {
|
||||
description = "Map of internal range IDs keyed by name."
|
||||
value = { for k, v in google_network_connectivity_internal_range.internal_range : k => v.id }
|
||||
}
|
||||
|
||||
output "internal_range_ip_cidr_ranges" {
|
||||
description = "Map of internal range IP CIDR ranges keyed by name."
|
||||
value = {
|
||||
for k, v in google_network_connectivity_internal_range.internal_range : k => v.ip_cidr_range
|
||||
}
|
||||
}
|
||||
|
||||
output "internal_ranges" {
|
||||
description = "Internal range resources."
|
||||
value = { for k, v in google_network_connectivity_internal_range.internal_range : k => v }
|
||||
}
|
||||
|
||||
output "name" {
|
||||
description = "Network name."
|
||||
value = local.network.name
|
||||
|
||||
Reference in New Issue
Block a user