Added endpoint_attachment_hosts output to apigee module

This commit is contained in:
Miren Esnaola 2022-12-22 15:30:24 +01:00
parent 3737fd1d72
commit e1613ee03e
2 changed files with 13 additions and 7 deletions

View File

@ -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. | |
<!-- END TFDOC -->

View File

@ -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)