From e1613ee03eb36c7d79a0c2e3ee1dc1be5cbf367c Mon Sep 17 00:00:00 2001 From: Miren Esnaola Date: Thu, 22 Dec 2022 15:30:24 +0100 Subject: [PATCH] Added endpoint_attachment_hosts output to apigee module --- modules/apigee/README.md | 15 ++++++++------- modules/apigee/outputs.tf | 5 +++++ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/modules/apigee/README.md b/modules/apigee/README.md index 7754d102..fb26c1e7 100644 --- a/modules/apigee/README.md +++ b/modules/apigee/README.md @@ -180,12 +180,13 @@ module "apigee" { | name | description | sensitive | |---|---|:---:| -| [envgroups](outputs.tf#L17) | Environment groups. | | -| [environments](outputs.tf#L22) | Environment. | | -| [instances](outputs.tf#L27) | Instances. | | -| [org_id](outputs.tf#L32) | Organization ID. | | -| [org_name](outputs.tf#L37) | Organization name. | | -| [organization](outputs.tf#L42) | Organization. | | -| [service_attachments](outputs.tf#L47) | Service attachments. | | +| [endpoint_attachment_hosts](outputs.tf#L17) | Endpoint hosts. | | +| [envgroups](outputs.tf#L22) | Environment groups. | | +| [environments](outputs.tf#L27) | Environment. | | +| [instances](outputs.tf#L32) | Instances. | | +| [org_id](outputs.tf#L37) | Organization ID. | | +| [org_name](outputs.tf#L42) | Organization name. | | +| [organization](outputs.tf#L47) | Organization. | | +| [service_attachments](outputs.tf#L52) | Service attachments. | | diff --git a/modules/apigee/outputs.tf b/modules/apigee/outputs.tf index a5e70388..74ad9f18 100644 --- a/modules/apigee/outputs.tf +++ b/modules/apigee/outputs.tf @@ -14,6 +14,11 @@ * limitations under the License. */ +output "endpoint_attachment_hosts" { + description = "Endpoint hosts." + value = { for k, v in google_apigee_endpoint_attachment.endpoint_attachments : k => v.host } +} + output "envgroups" { description = "Environment groups." value = try(google_apigee_envgroup.envgroups, null)