Merge pull request #1192 from GoogleCloudPlatform/lcaggio/dataproc-01

Dataproc module: Fix outputs
This commit is contained in:
lcaggio 2023-02-28 11:47:22 +01:00 committed by GitHub
commit ff0ab33ce6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 6 deletions

View File

@ -110,7 +110,6 @@ module "processing-dp-cluster" {
}
# tftest modules=1 resources=2
```
<!-- BEGIN TFDOC -->
## Variables
@ -128,4 +127,13 @@ module "processing-dp-cluster" {
| [prefix](variables.tf#L216) | Optional prefix used to generate project id and name. | <code>string</code> | | <code>null</code> |
| [service_account](variables.tf#L236) | Service account to set on the Dataproc cluster. | <code>string</code> | | <code>null</code> |
## Outputs
| name | description | sensitive |
|---|---|:---:|
| [bucket_names](outputs.tf#L19) | List of bucket names which have been assigned to the cluster. | |
| [http_ports](outputs.tf#L24) | The map of port descriptions to URLs. | |
| [instance_names](outputs.tf#L29) | List of instance names which have been assigned to the cluster. | |
| [name](outputs.tf#L38) | The name of the cluster. | |
<!-- END TFDOC -->

View File

@ -21,11 +21,6 @@ output "bucket_names" {
value = google_dataproc_cluster.cluster.cluster_config.0.bucket
}
output "name" {
description = "The name of the cluster."
value = google_dataproc_cluster.cluster.cluster_config.0.bucket
}
output "http_ports" {
description = "The map of port descriptions to URLs."
value = google_dataproc_cluster.cluster.cluster_config.0.endpoint_config.0.http_ports
@ -40,3 +35,8 @@ output "instance_names" {
}
}
output "name" {
description = "The name of the cluster."
value = google_dataproc_cluster.cluster.cluster_config.0.bucket
}