Skip to content

Commit f5ad3e6

Browse files
ykyrimrannayer
andauthored
feat: add setting enable_dataplex_integration (#713)
Co-authored-by: Imran Nayer <[email protected]>
1 parent db53c26 commit f5ad3e6

File tree

13 files changed

+38
-0
lines changed

13 files changed

+38
-0
lines changed

modules/mssql/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ module "mssql" {
5555
| disk\_size | The disk size for the Cloud SQL instance. | `number` | `10` | no |
5656
| disk\_type | The disk type for the Cloud SQL instance. | `string` | `"PD_SSD"` | no |
5757
| edition | The edition of the instance, can be ENTERPRISE or ENTERPRISE\_PLUS. | `string` | `null` | no |
58+
| enable\_dataplex\_integration | Enable database Dataplex integration | `bool` | `false` | no |
5859
| enable\_default\_db | Enable or disable the creation of the default database | `bool` | `true` | no |
5960
| enable\_default\_user | Enable or disable the creation of the default user | `bool` | `true` | no |
6061
| encryption\_key\_name | The full path to the encryption key used for the CMEK disk encryption | `string` | `null` | no |

modules/mssql/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ resource "google_sql_database_instance" "default" {
6262
availability_type = var.availability_type
6363
deletion_protection_enabled = var.deletion_protection_enabled
6464
connector_enforcement = local.connector_enforcement
65+
enable_dataplex_integration = var.enable_dataplex_integration
6566

6667
dynamic "backup_configuration" {
6768
for_each = !local.is_secondary_instance && var.backup_configuration.enabled ? [var.backup_configuration] : []

modules/mssql/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,3 +360,9 @@ variable "enable_default_user" {
360360
type = bool
361361
default = true
362362
}
363+
364+
variable "enable_dataplex_integration" {
365+
description = "Enable database Dataplex integration"
366+
type = bool
367+
default = false
368+
}

modules/mysql/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ module "mysql-db" {
6868
| disk\_size | The disk size (in GB) for the master instance | `number` | `10` | no |
6969
| disk\_type | The disk type for the master instance. | `string` | `"PD_SSD"` | no |
7070
| edition | The edition of the instance, can be ENTERPRISE or ENTERPRISE\_PLUS. | `string` | `null` | no |
71+
| enable\_dataplex\_integration | Enable database Dataplex integration | `bool` | `false` | no |
7172
| enable\_default\_db | Enable or disable the creation of the default database | `bool` | `true` | no |
7273
| enable\_default\_user | Enable or disable the creation of the default user | `bool` | `true` | no |
7374
| enable\_google\_ml\_integration | Enable database ML integration | `bool` | `false` | no |

modules/mysql/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ resource "google_sql_database_instance" "default" {
7272
deletion_protection_enabled = var.deletion_protection_enabled
7373
connector_enforcement = local.connector_enforcement
7474
enable_google_ml_integration = var.enable_google_ml_integration
75+
enable_dataplex_integration = var.enable_dataplex_integration
7576

7677
dynamic "backup_configuration" {
7778
for_each = [var.backup_configuration]

modules/mysql/metadata.display.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ spec:
162162
enable_google_ml_integration:
163163
name: enable_google_ml_integration
164164
title: Enable Google Ml Integration
165+
enable_dataplex_integration:
166+
name: enable_dataplex_integration
167+
title: Enable Dataplex Integration
165168
enable_random_password_special:
166169
name: enable_random_password_special
167170
title: Enable Random Password Special

modules/mysql/metadata.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,10 @@ spec:
406406
description: Enable database ML integration
407407
varType: bool
408408
defaultValue: false
409+
- name: enable_dataplex_integration
410+
description: Enable database Dataplex integration
411+
varType: bool
412+
defaultValue: false
409413
- name: database_integration_roles
410414
description: The roles required by default database instance service account for integration with GCP services
411415
varType: list(string)

modules/mysql/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,12 @@ variable "enable_google_ml_integration" {
462462
default = false
463463
}
464464

465+
variable "enable_dataplex_integration" {
466+
description = "Enable database Dataplex integration"
467+
type = bool
468+
default = false
469+
}
470+
465471
variable "database_integration_roles" {
466472
description = "The roles required by default database instance service account for integration with GCP services"
467473
type = list(string)

modules/postgresql/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ module "pg" {
140140
| disk\_size | The disk size (in GB) for the Cloud SQL instance. | `number` | `10` | no |
141141
| disk\_type | The disk type for the Cloud SQL instance. | `string` | `"PD_SSD"` | no |
142142
| edition | The edition of the Cloud SQL instance, can be ENTERPRISE or ENTERPRISE\_PLUS. | `string` | `null` | no |
143+
| enable\_dataplex\_integration | Enable database Dataplex integration | `bool` | `false` | no |
143144
| enable\_default\_db | Enable or disable the creation of the default database | `bool` | `true` | no |
144145
| enable\_default\_user | Enable or disable the creation of the default user | `bool` | `true` | no |
145146
| enable\_google\_ml\_integration | Enable database ML integration | `bool` | `false` | no |

modules/postgresql/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ resource "google_sql_database_instance" "default" {
7777
deletion_protection_enabled = var.deletion_protection_enabled
7878
connector_enforcement = local.connector_enforcement
7979
enable_google_ml_integration = var.enable_google_ml_integration
80+
enable_dataplex_integration = var.enable_dataplex_integration
8081

8182
dynamic "backup_configuration" {
8283
for_each = local.is_secondary_instance ? [] : [var.backup_configuration]

0 commit comments

Comments
 (0)