Skip to content

Commit

Permalink
Add field metastore_config to google_dataproc_cluster (#5146) (#9935)
Browse files Browse the repository at this point in the history
* added metastoreConfig to dataproc cluster

* Update mmv1/third_party/terraform/resources/resource_dataproc_cluster.go.erb

Co-authored-by: Cameron Thornton <[email protected]>

Co-authored-by: Cameron Thornton <[email protected]>
Signed-off-by: Modular Magician <[email protected]>

Co-authored-by: Cameron Thornton <[email protected]>
  • Loading branch information
modular-magician and c2thorn authored Aug 27, 2021
1 parent 6658601 commit 39dd0ed
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/5146.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
dataproc: added field `metastore_config` to `google_dataproc_cluster` (beta)
```
21 changes: 21 additions & 0 deletions website/docs/r/dataproc_cluster.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ The `cluster_config` block supports:
initialization_action { ... }
encryption_config { ... }
endpoint_config { ... }
metastore_config { ... }
}
```

Expand Down Expand Up @@ -214,6 +215,9 @@ The `cluster_config` block supports:

* `endpoint_config` (Optional, Beta) The config settings for port access on the cluster.
Structure defined below.

* `metastore_config` (Optional, Beta) The config setting for metastore service with the cluster.
Structure defined below.
- - -

The `cluster_config.gce_cluster_config` block supports:
Expand Down Expand Up @@ -650,6 +654,23 @@ cluster_config {
* `enable_http_port_access` - (Optional) The flag to enable http access to specific ports
on the cluster from external sources (aka Component Gateway). Defaults to false.


The `metastore_config` block (Optional, Computed, Beta) supports:

```hcl
cluster_config {
metastore_config {
dataproc_metastore_service = "projects/projectId/locations/region/services/serviceName"
}
}
```

* `dataproc_metastore_service` - (Required) Resource name of an existing Dataproc Metastore service.

Only resource names including projectid and location (region) are valid. Examples:

`projects/[projectId]/locations/[dataproc_region]/services/[service-name]`

## Attributes Reference

In addition to the arguments listed above, the following computed attributes are
Expand Down

0 comments on commit 39dd0ed

Please sign in to comment.