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
-
# you may not use this file except in compliance with the License.
5
-
# You may obtain a copy of the License at
6
-
#
7
-
# http://www.apache.org/licenses/LICENSE-2.0
8
-
#
9
-
# Unless required by applicable law or agreed to in writing, software
10
-
# distributed under the License is distributed on an "AS IS" BASIS,
11
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
-
# See the License for the specific language governing permissions and
13
-
# limitations under the License.
14
-
15
1
apiVersion: blueprints.cloud.google.com/v1alpha1
16
2
kind: BlueprintMetadata
17
3
metadata:
@@ -61,10 +47,21 @@ spec:
61
47
location: examples/private_service_access
62
48
interfaces:
63
49
variables:
64
-
- name: backup_monitoring_frequency
65
-
description: Timeframe in which there should be at least one successfull backup
50
+
- name: region
51
+
description: The region where to run the workflow
66
52
varType: string
67
-
defaultValue: 1d
53
+
defaultValue: us-central1
54
+
- name: service_account
55
+
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
56
+
varType: string
57
+
- name: project_id
58
+
description: The project ID
59
+
varType: string
60
+
required: true
61
+
- name: sql_instance
62
+
description: The name of the SQL instance to backup
63
+
varType: string
64
+
required: true
68
65
- name: backup_retention_time
69
66
description: The number of days backups should be kept
70
67
varType: number
@@ -73,69 +70,88 @@ spec:
73
70
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
71
varType: number
75
72
defaultValue: 31
73
+
- name: scheduler_timezone
74
+
description: The Timezone in which the Scheduler Jobs are triggered
75
+
varType: string
76
+
defaultValue: Etc/GMT
76
77
- name: backup_schedule
77
78
description: The cron schedule to execute the internal backup
78
79
varType: string
79
80
defaultValue: 45 2 * * *
81
+
- name: export_schedule
82
+
description: The cron schedule to execute the export to GCS
83
+
varType: string
84
+
defaultValue: 15 3 * * *
85
+
- name: enable_internal_backup
86
+
description: Wether to create internal backups with this module
87
+
varType: bool
88
+
defaultValue: true
89
+
- name: enable_export_backup
90
+
description: Weather to create exports to GCS Buckets with this module
91
+
varType: bool
92
+
defaultValue: true
93
+
- name: export_databases
94
+
description: The list of databases that should be exported - if is an empty set all databases will be exported
95
+
varType: set(string)
96
+
defaultValue: []
97
+
- name: export_uri
98
+
description: The bucket and path uri for exporting to GCS
99
+
varType: string
100
+
required: true
80
101
- name: compress_export
81
102
description: Whether or not to compress the export when storing in the bucket; Only valid for MySQL and PostgreSQL
82
103
varType: bool
83
104
defaultValue: true
105
+
- name: enable_connector_params
106
+
description: Whether to enable connector-specific parameters for Google Workflow SQL Export.
107
+
varType: bool
108
+
defaultValue: false
84
109
- name: connector_params_timeout
85
110
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
111
varType: number
87
112
defaultValue: 1800
88
-
- name: create_notification_channel
89
-
description: If set to true it will create email notification channel
113
+
- name: unique_suffix
114
+
description: Unique suffix to add to scheduler jobs and workflows names.
115
+
varType: string
116
+
defaultValue: ""
117
+
- name: log_db_name_to_export
118
+
description: Whether or not to log database name in the export workflow
90
119
varType: bool
91
120
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
121
+
- name: use_sql_instance_replica_in_exporter
122
+
description: Whether or not to use replica instance on exporter workflow.
98
123
varType: bool
99
124
defaultValue: false
100
-
- name: enable_connector_params
101
-
description: Whether to enable connector-specific parameters for Google Workflow SQL Export.
125
+
- name: sql_instance_replica
126
+
description: The name of the SQL instance replica to export
127
+
varType: string
128
+
- name: use_serverless_export
129
+
description: Whether to use serverless export for DB export
102
130
varType: bool
103
131
defaultValue: false
104
-
- name: enable_export_backup
105
-
description: Weather to create exports to GCS Buckets with this module
132
+
- name: monitoring_email
133
+
description: Email address to send alerts
134
+
varType: string
135
+
- name: enable_backup_monitoring
136
+
description: Whether to monitor backup workflows or not
106
137
varType: bool
107
-
defaultValue: true
138
+
defaultValue: false
139
+
- name: backup_monitoring_frequency
140
+
description: Timeframe in which there should be at least one successfull backup
141
+
varType: string
142
+
defaultValue: 1d
108
143
- name: enable_export_monitoring
109
144
description: Whether to monitor export workflows or not
110
145
varType: bool
111
146
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
147
- name: export_monitoring_frequency
121
148
description: Timeframe in which there should be at least one successfull export
122
149
varType: string
123
150
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
151
+
- name: create_notification_channel
152
+
description: If set to true it will create email notification channel
134
153
varType: bool
135
154
defaultValue: false
136
-
- name: monitoring_email
137
-
description: Email address to send alerts
138
-
varType: string
139
155
- name: notification_channel_name
140
156
description: Name of the email notification channel to be created. Only needed when create_notification_channel is set to true.
141
157
varType: string
@@ -144,40 +160,10 @@ spec:
144
160
description: List of existing notification channels to send alerts to
145
161
varType: list(string)
146
162
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.
163
+
- name: deletion_protection
164
+
description: Whether Terraform will be prevented from destroying the workflow.
179
165
varType: bool
180
-
defaultValue: false
166
+
defaultValue: true
181
167
outputs:
182
168
- name: backup_workflow_name
183
169
description: The name for internal backup workflow
Copy file name to clipboardExpand all lines: modules/mssql/metadata.yaml
+18-33Lines changed: 18 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,3 @@
1
-
# Copyright 2024 Google LLC
2
-
#
3
-
# Licensed under the Apache License, Version 2.0 (the "License");
4
-
# you may not use this file except in compliance with the License.
5
-
# You may obtain a copy of the License at
6
-
#
7
-
# http://www.apache.org/licenses/LICENSE-2.0
8
-
#
9
-
# Unless required by applicable law or agreed to in writing, software
10
-
# distributed under the License is distributed on an "AS IS" BASIS,
11
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
-
# See the License for the specific language governing permissions and
13
-
# limitations under the License.
14
-
15
1
apiVersion: blueprints.cloud.google.com/v1alpha1
16
2
kind: BlueprintMetadata
17
3
metadata:
@@ -81,6 +67,9 @@ spec:
81
67
description: Sets random suffix at the end of the Cloud SQL resource name
82
68
varType: bool
83
69
defaultValue: false
70
+
- name: maintenance_version
71
+
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
72
+
varType: string
84
73
- name: database_version
85
74
description: "The database version to use: SQLSERVER_2017_STANDARD, SQLSERVER_2017_ENTERPRISE, SQLSERVER_2017_EXPRESS, or SQLSERVER_2017_WEB"
86
75
varType: string
@@ -298,6 +287,19 @@ spec:
298
287
description: Enable or disable the creation of the default user
299
288
varType: bool
300
289
defaultValue: true
290
+
- name: enable_dataplex_integration
291
+
description: Enable database Dataplex integration
292
+
varType: bool
293
+
defaultValue: false
294
+
- name: insights_config
295
+
description: The insights_config settings for the database.
296
+
varType: |-
297
+
object({
298
+
query_plans_per_minute = optional(number, 5)
299
+
query_string_length = optional(number, 1024)
300
+
record_application_tags = optional(bool, false)
301
+
record_client_address = optional(bool, false)
302
+
})
301
303
outputs:
302
304
- name: additional_users
303
305
description: List of maps of additional users and passwords
0 commit comments