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

Added outputs to apigee-x-foundations blueprint (instances and lbs) #2704

Merged
merged 1 commit into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
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
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