|
| 1 | +/** |
| 2 | + * Copyright 2019 Google LLC |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + */ |
| 16 | + |
| 17 | +output "project_id" { |
| 18 | + value = google_compute_subnetwork.network-with-private-secondary-ip-ranges.project |
| 19 | + description = "Google Cloud project ID" |
| 20 | +} |
| 21 | + |
| 22 | +output "region" { |
| 23 | + value = google_compute_subnetwork.network-with-private-secondary-ip-ranges.region |
| 24 | + description = "Google Cloud region" |
| 25 | +} |
| 26 | + |
| 27 | +output "subnetwork_name" { |
| 28 | + value = google_compute_subnetwork.network-with-private-secondary-ip-ranges.name |
| 29 | + description = "The name of the subnetwork" |
| 30 | +} |
| 31 | + |
| 32 | +output "primary_cidr" { |
| 33 | + value = google_compute_subnetwork.network-with-private-secondary-ip-ranges.ip_cidr_range |
| 34 | + description = "Primary CIDR range" |
| 35 | +} |
| 36 | + |
| 37 | +output "secondary_cidr_name" { |
| 38 | + value = google_compute_subnetwork.network-with-private-secondary-ip-ranges.secondary_ip_range[0].range_name |
| 39 | + description = "Name of the secondary CIDR range" |
| 40 | +} |
| 41 | + |
| 42 | +output "secondary_cidr" { |
| 43 | + value = google_compute_subnetwork.network-with-private-secondary-ip-ranges.secondary_ip_range[0].ip_cidr_range |
| 44 | + description = "Secondary CIDR range" |
| 45 | +} |
0 commit comments