Skip to content

Commit

Permalink
Added outputs to apigee-x-foundations blueprint (instances and lbs) (#…
Browse files Browse the repository at this point in the history
…2704)

Added outputs to apigee-x-foundations blueprint (instances and lbs)
  • Loading branch information
apichick authored Nov 17, 2024
1 parent 6b0745d commit f9bfa04
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 6 deletions.
16 changes: 10 additions & 6 deletions blueprints/apigee/apigee-x-foundations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -491,10 +491,14 @@ module "apigee-x-foundations" {
| [apigee_vpc_id](outputs.tf#L22) | Apigee VPC. | | |
| [apigee_vpc_self_link](outputs.tf#L27) | Apigee VPC. | | |
| [endpoint_attachment_hosts](outputs.tf#L31) | Endpoint attachment hosts. | | |
| [ext_lb_ip_address](outputs.tf#L36) | External IP address. | | |
| [instance_service_attachments](outputs.tf#L41) | Instance service attachments. | | |
| [int_cross_region_lb_ip_addresses](outputs.tf#L46) | Internal IP addresses. | | |
| [int_lb_ip_addresses](outputs.tf#L51) | Internal IP addresses. | | |
| [project](outputs.tf#L56) | Project. | | |
| [project_id](outputs.tf#L61) | Project id. | | |
| [ext_lb](outputs.tf#L36) | External LB. | | |
| [ext_lb_ip_address](outputs.tf#L41) | External IP address. | | |
| [instance_service_attachments](outputs.tf#L46) | Instance service attachments. | | |
| [instances](outputs.tf#L51) | Instances. | | |
| [int_cross_region_lb](outputs.tf#L56) | Internal cross-region LBs. | | |
| [int_cross_region_lb_ip_addresses](outputs.tf#L61) | Internal IP addresses. | | |
| [int_lb_ip_addresses](outputs.tf#L66) | Internal IP addresses. | | |
| [int_lbs](outputs.tf#L71) | Internal LBs. | | |
| [project](outputs.tf#L76) | Project. | | |
| [project_id](outputs.tf#L81) | Project id. | | |
<!-- END TFDOC -->
20 changes: 20 additions & 0 deletions blueprints/apigee/apigee-x-foundations/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ output "endpoint_attachment_hosts" {
value = module.apigee.endpoint_attachment_hosts
}

output "ext_lb" {
description = "External LB."
value = var.ext_lb_config != null && length(local.ext_instances) > 0 ? module.ext_lb[0] : null
}

output "ext_lb_ip_address" {
description = "External IP address."
value = var.ext_lb_config != null && length(local.ext_instances) > 0 ? module.ext_lb[0].address : null
Expand All @@ -43,6 +48,16 @@ output "instance_service_attachments" {
value = { for k, v in module.apigee.instances : k => v.service_attachment }
}

output "instances" {
description = "Instances."
value = module.apigee.instances
}

output "int_cross_region_lb" {
description = "Internal cross-region LBs."
value = var.int_cross_region_lb_config != null && length(local.int_cross_region_instances) > 0 ? module.int_cross_region_lb[0] : null
}

output "int_cross_region_lb_ip_addresses" {
description = "Internal IP addresses."
value = var.int_cross_region_lb_config != null && length(local.int_cross_region_instances) > 0 ? module.int_cross_region_lb[0].addresses : null
Expand All @@ -53,6 +68,11 @@ output "int_lb_ip_addresses" {
value = var.int_lb_config != null && length(local.int_instances) > 0 ? { for k, v in module.int_lb : k => v.address } : null
}

output "int_lbs" {
description = "Internal LBs."
value = module.int_lb
}

output "project" {
description = "Project."
value = module.project
Expand Down

0 comments on commit f9bfa04

Please sign in to comment.