You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Licensed under the Apache License, Version 2.0 (the "License");
4
4
# you may not use this file except in compliance with the License.
@@ -61,10 +61,21 @@ spec:
61
61
location: examples/private_service_access
62
62
interfaces:
63
63
variables:
64
-
- name: backup_monitoring_frequency
65
-
description: Timeframe in which there should be at least one successfull backup
64
+
- name: region
65
+
description: The region where to run the workflow
66
66
varType: string
67
-
defaultValue: 1d
67
+
defaultValue: us-central1
68
+
- name: service_account
69
+
description: The service account to use for running the workflow and triggering the workflow by Cloud Scheduler - If empty or null a service account will be created. If you have provided a service account you need to grant the Cloud SQL Admin and the Workflows Invoker role to that
70
+
varType: string
71
+
- name: project_id
72
+
description: The project ID
73
+
varType: string
74
+
required: true
75
+
- name: sql_instance
76
+
description: The name of the SQL instance to backup
77
+
varType: string
78
+
required: true
68
79
- name: backup_retention_time
69
80
description: The number of days backups should be kept
70
81
varType: number
@@ -73,69 +84,88 @@ spec:
73
84
description: The max amount of backups to list when fetching internal backup runs for the instance. This number must be larger then the amount of backups you wish to keep. E.g. for a daily backup schedule and a backup_retention_time of 30 days, you'd need to set this to at least 31 for old backups to get deleted.
74
85
varType: number
75
86
defaultValue: 31
87
+
- name: scheduler_timezone
88
+
description: The Timezone in which the Scheduler Jobs are triggered
89
+
varType: string
90
+
defaultValue: Etc/GMT
76
91
- name: backup_schedule
77
92
description: The cron schedule to execute the internal backup
78
93
varType: string
79
94
defaultValue: 45 2 * * *
95
+
- name: export_schedule
96
+
description: The cron schedule to execute the export to GCS
97
+
varType: string
98
+
defaultValue: 15 3 * * *
99
+
- name: enable_internal_backup
100
+
description: Wether to create internal backups with this module
101
+
varType: bool
102
+
defaultValue: true
103
+
- name: enable_export_backup
104
+
description: Weather to create exports to GCS Buckets with this module
105
+
varType: bool
106
+
defaultValue: true
107
+
- name: export_databases
108
+
description: The list of databases that should be exported - if is an empty set all databases will be exported
109
+
varType: set(string)
110
+
defaultValue: []
111
+
- name: export_uri
112
+
description: The bucket and path uri for exporting to GCS
113
+
varType: string
114
+
required: true
80
115
- name: compress_export
81
116
description: Whether or not to compress the export when storing in the bucket; Only valid for MySQL and PostgreSQL
82
117
varType: bool
83
118
defaultValue: true
119
+
- name: enable_connector_params
120
+
description: Whether to enable connector-specific parameters for Google Workflow SQL Export.
121
+
varType: bool
122
+
defaultValue: false
84
123
- name: connector_params_timeout
85
124
description: The end-to-end duration the connector call is allowed to run for before throwing a timeout exception. The default value is 1800 and this should be the maximum for connector methods that are not long-running operations. Otherwise, for long-running operations, the maximum timeout for a connector call is 31536000 seconds (one year).
86
125
varType: number
87
126
defaultValue: 1800
88
-
- name: create_notification_channel
89
-
description: If set to true it will create email notification channel
127
+
- name: unique_suffix
128
+
description: Unique suffix to add to scheduler jobs and workflows names.
129
+
varType: string
130
+
defaultValue: ""
131
+
- name: log_db_name_to_export
132
+
description: Whether or not to log database name in the export workflow
90
133
varType: bool
91
134
defaultValue: false
92
-
- name: deletion_protection
93
-
description: Whether Terraform will be prevented from destroying the workflow.
94
-
varType: bool
95
-
defaultValue: true
96
-
- name: enable_backup_monitoring
97
-
description: Whether to monitor backup workflows or not
135
+
- name: use_sql_instance_replica_in_exporter
136
+
description: Whether or not to use replica instance on exporter workflow.
98
137
varType: bool
99
138
defaultValue: false
100
-
- name: enable_connector_params
101
-
description: Whether to enable connector-specific parameters for Google Workflow SQL Export.
139
+
- name: sql_instance_replica
140
+
description: The name of the SQL instance replica to export
141
+
varType: string
142
+
- name: use_serverless_export
143
+
description: Whether to use serverless export for DB export
102
144
varType: bool
103
145
defaultValue: false
104
-
- name: enable_export_backup
105
-
description: Weather to create exports to GCS Buckets with this module
146
+
- name: monitoring_email
147
+
description: Email address to send alerts
148
+
varType: string
149
+
- name: enable_backup_monitoring
150
+
description: Whether to monitor backup workflows or not
106
151
varType: bool
107
-
defaultValue: true
152
+
defaultValue: false
153
+
- name: backup_monitoring_frequency
154
+
description: Timeframe in which there should be at least one successfull backup
155
+
varType: string
156
+
defaultValue: 1d
108
157
- name: enable_export_monitoring
109
158
description: Whether to monitor export workflows or not
110
159
varType: bool
111
160
defaultValue: false
112
-
- name: enable_internal_backup
113
-
description: Wether to create internal backups with this module
114
-
varType: bool
115
-
defaultValue: true
116
-
- name: export_databases
117
-
description: The list of databases that should be exported - if is an empty set all databases will be exported
118
-
varType: set(string)
119
-
defaultValue: []
120
161
- name: export_monitoring_frequency
121
162
description: Timeframe in which there should be at least one successfull export
122
163
varType: string
123
164
defaultValue: 1d
124
-
- name: export_schedule
125
-
description: The cron schedule to execute the export to GCS
126
-
varType: string
127
-
defaultValue: 15 3 * * *
128
-
- name: export_uri
129
-
description: The bucket and path uri for exporting to GCS
130
-
varType: string
131
-
required: true
132
-
- name: log_db_name_to_export
133
-
description: Whether or not to log database name in the export workflow
165
+
- name: create_notification_channel
166
+
description: If set to true it will create email notification channel
134
167
varType: bool
135
168
defaultValue: false
136
-
- name: monitoring_email
137
-
description: Email address to send alerts
138
-
varType: string
139
169
- name: notification_channel_name
140
170
description: Name of the email notification channel to be created. Only needed when create_notification_channel is set to true.
141
171
varType: string
@@ -144,40 +174,10 @@ spec:
144
174
description: List of existing notification channels to send alerts to
145
175
varType: list(string)
146
176
defaultValue: []
147
-
- name: project_id
148
-
description: The project ID
149
-
varType: string
150
-
required: true
151
-
- name: region
152
-
description: The region where to run the workflow
153
-
varType: string
154
-
defaultValue: us-central1
155
-
- name: scheduler_timezone
156
-
description: The Timezone in which the Scheduler Jobs are triggered
157
-
varType: string
158
-
defaultValue: Etc/GMT
159
-
- name: service_account
160
-
description: The service account to use for running the workflow and triggering the workflow by Cloud Scheduler - If empty or null a service account will be created. If you have provided a service account you need to grant the Cloud SQL Admin and the Workflows Invoker role to that
161
-
varType: string
162
-
- name: sql_instance
163
-
description: The name of the SQL instance to backup
164
-
varType: string
165
-
required: true
166
-
- name: sql_instance_replica
167
-
description: The name of the SQL instance replica to export
168
-
varType: string
169
-
- name: unique_suffix
170
-
description: Unique suffix to add to scheduler jobs and workflows names.
171
-
varType: string
172
-
defaultValue: ""
173
-
- name: use_serverless_export
174
-
description: Whether to use serverless export for DB export
175
-
varType: bool
176
-
defaultValue: false
177
-
- name: use_sql_instance_replica_in_exporter
178
-
description: Whether or not to use replica instance on exporter workflow.
177
+
- name: deletion_protection
178
+
description: Whether Terraform will be prevented from destroying the workflow.
179
179
varType: bool
180
-
defaultValue: false
180
+
defaultValue: true
181
181
outputs:
182
182
- name: backup_workflow_name
183
183
description: The name for internal backup workflow
Copy file name to clipboardExpand all lines: modules/mssql/metadata.yaml
+18-14Lines changed: 18 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Copyright 2024 Google LLC
1
+
# Copyright 2025 Google LLC
2
2
#
3
3
# Licensed under the Apache License, Version 2.0 (the "License");
4
4
# you may not use this file except in compliance with the License.
@@ -81,6 +81,9 @@ spec:
81
81
description: Sets random suffix at the end of the Cloud SQL resource name
82
82
varType: bool
83
83
defaultValue: false
84
+
- name: maintenance_version
85
+
description: The current software version on the instance. This attribute can not be set during creation. Refer to available_maintenance_versions attribute to see what maintenance_version are available for upgrade. When this attribute gets updated, it will cause an instance restart. Setting a maintenance_version value that is older than the current one on the instance will be ignored
86
+
varType: string
84
87
- name: database_version
85
88
description: "The database version to use: SQLSERVER_2017_STANDARD, SQLSERVER_2017_ENTERPRISE, SQLSERVER_2017_EXPRESS, or SQLSERVER_2017_WEB"
86
89
varType: string
@@ -298,6 +301,19 @@ spec:
298
301
description: Enable or disable the creation of the default user
299
302
varType: bool
300
303
defaultValue: true
304
+
- name: enable_dataplex_integration
305
+
description: Enable database Dataplex integration
306
+
varType: bool
307
+
defaultValue: false
308
+
- name: insights_config
309
+
description: The insights_config settings for the database.
310
+
varType: |-
311
+
object({
312
+
query_plans_per_minute = optional(number, 5)
313
+
query_string_length = optional(number, 1024)
314
+
record_application_tags = optional(bool, false)
315
+
record_client_address = optional(bool, false)
316
+
})
301
317
outputs:
302
318
- name: additional_users
303
319
description: List of maps of additional users and passwords
Copy file name to clipboardExpand all lines: modules/mysql/metadata.yaml
+9-14Lines changed: 9 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -279,6 +279,10 @@ spec:
279
279
retention_unit = optional(string)
280
280
})
281
281
defaultValue: {}
282
+
- name: retain_backups_on_delete
283
+
description: When this parameter is set to true, Cloud SQL retains backups of the instance even after the instance is deleted. The ON_DEMAND backup will be retained until customer deletes the backup or the project. The AUTOMATED backup will be retained based on the backups retention setting.
284
+
varType: bool
285
+
defaultValue: false
282
286
- name: insights_config
283
287
description: The insights_config settings for the database.
0 commit comments