Skip to content

Commit

Permalink
Merge pull request #1068 from apichick/apigee-endpoint-attachment-hos…
Browse files Browse the repository at this point in the history
…ts-output

Added endpoint_attachment_hosts output to apigee module
  • Loading branch information
apichick authored Dec 22, 2022
2 parents 3737fd1 + e1613ee commit 3617e95
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
15 changes: 8 additions & 7 deletions modules/apigee/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 -->
5 changes: 5 additions & 0 deletions modules/apigee/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3617e95

Please sign in to comment.