Skip to content

Commit 160511b

Browse files
authored
feat: support data fusion version (#56)
* Fixed Issue #51 * Fixed Issue #51 and generated docs
1 parent 9431683 commit 160511b

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Functional examples are included in the
2626
| Name | Description | Type | Default | Required |
2727
|------|-------------|------|---------|:--------:|
2828
| data\_fusion\_service\_account | Google Managed Data Fusion Service Account Email | `any` | n/a | yes |
29+
| datafusion\_version | Data Fusion Version to deploy. | `string` | `null` | no |
2930
| dataproc\_subnet | Name for subnet to create and configure for Dataproc clusters controlled by private Data Fusion instance. | `string` | `"dataproc-subnet"` | no |
3031
| description | An optional description of the instance. | `string` | `null` | no |
3132
| labels | The resource labels for instance to use to annotate any related underlying resources, such as Compute Engine VMs. | `map(string)` | `{}` | no |

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ module "instance" {
3535
region = var.region
3636
type = var.type
3737
labels = var.labels
38+
datafusion_version = var.datafusion_version
3839
options = var.options
3940
network_config = {
4041
network = module.data_fusion_network.data_fusion_vpc.network_name

modules/instance/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ resource "google_data_fusion_instance" "instance" {
2424
enable_stackdriver_logging = true
2525
enable_stackdriver_monitoring = true
2626
labels = var.labels
27+
version = var.datafusion_version
2728
options = var.options
2829
private_instance = var.network_config != null
2930

modules/instance/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ variable "project" {
2424
type = string
2525
}
2626

27+
variable "datafusion_version" {
28+
description = "Data Fusion Version to deploy."
29+
type = string
30+
default = null
31+
}
32+
2733
variable "description" {
2834
description = "An optional description of the instance."
2935
type = string

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ variable "project" {
2424
type = string
2525
}
2626

27+
variable "datafusion_version" {
28+
description = "Data Fusion Version to deploy."
29+
type = string
30+
default = null
31+
}
32+
2733
variable "network" {
2834
description = "Name for VPC to create or reuse to be configured for use with private Data Fusion instance."
2935
type = string

0 commit comments

Comments
 (0)