Add resources created as outputs
This commit is contained in:
parent
f82b5284c9
commit
d0f346f6c6
|
@ -137,7 +137,7 @@ module "spoke-ra" {
|
|||
| [project_id](variables.tf#L37) | The ID of the project where the NCC hub & spokes will be created. | <code>string</code> | ✓ | |
|
||||
| [region](variables.tf#L42) | Region where the spoke is located. | <code>string</code> | ✓ | |
|
||||
| [router_appliances](variables.tf#L47) | List of router appliances this spoke is associated with. | <code title="list(object({ internal_ip = string vm_self_link = string }))">list(object({…}))</code> | ✓ | |
|
||||
| [router_config](variables.tf#L55) | Configuration of the Cloud Router. | <code title="object({ asn = number custom_advertise = optional(object({ all_subnets = bool ip_ranges = map(string) # map of descriptions and address ranges })) ip_interface1 = string ip_interface2 = string keepalive = optional(number) peer_asn = number })">object({…})</code> | ✓ | |
|
||||
| [router_config](variables.tf#L55) | Configuration of the Cloud Router. | <code title="object({ asn = number custom_advertise = optional(object({ all_subnets = bool ip_ranges = map(string) })) ip_interface1 = string ip_interface2 = string keepalive = optional(number) peer_asn = number })">object({…})</code> | ✓ | |
|
||||
| [vpc_config](variables.tf#L70) | Network and subnetwork for the CR interfaces. | <code title="object({ network_name = string subnet_self_link = string })">object({…})</code> | ✓ | |
|
||||
| [data_transfer](variables.tf#L17) | Site-to-site data transfer feature, available only in some regions. | <code>bool</code> | | <code>false</code> |
|
||||
|
||||
|
@ -145,6 +145,8 @@ module "spoke-ra" {
|
|||
|
||||
| name | description | sensitive |
|
||||
|---|---|:---:|
|
||||
| [hub_name](outputs.tf#L17) | NCC hub name (only if auto-created). | |
|
||||
| [hub](outputs.tf#L17) | NCC hub resource (only if auto-created). | |
|
||||
| [router](outputs.tf#L22) | Cloud Router resource. | |
|
||||
| [spoke-ra](outputs.tf#L27) | NCC spoke resource. | |
|
||||
|
||||
<!-- END TFDOC -->
|
||||
|
|
|
@ -14,7 +14,17 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
output "hub_name" {
|
||||
description = "NCC hub name (only if auto-created)."
|
||||
value = one(google_network_connectivity_hub.hub[*].name)
|
||||
output "hub" {
|
||||
description = "NCC hub resource (only if auto-created)."
|
||||
value = one(google_network_connectivity_hub.hub[*])
|
||||
}
|
||||
|
||||
output "router" {
|
||||
description = "Cloud Router resource."
|
||||
value = google_compute_router.cr
|
||||
}
|
||||
|
||||
output "spoke-ra" {
|
||||
description = "NCC spoke resource."
|
||||
value = google_network_connectivity_spoke.spoke-ra
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue