Merge pull request #1068 from apichick/apigee-endpoint-attachment-hosts-output

Added endpoint_attachment_hosts output to apigee module
This commit is contained in:
apichick 2022-12-22 15:57:25 +01:00 committed by GitHub
commit 3617e95b53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)