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
Copy file name to clipboardExpand all lines: modules/mysql/metadata.yaml
+96-95Lines changed: 96 additions & 95 deletions
Original file line number
Diff line number
Diff line change
@@ -66,10 +66,103 @@ spec:
66
66
description: The project ID to manage the Cloud SQL resources
67
67
varType: string
68
68
required: true
69
+
- name: region
70
+
description: The region of the Cloud SQL resources
71
+
varType: string
72
+
defaultValue: us-central1
69
73
- name: name
70
74
description: The name of the Cloud SQL resources
71
75
varType: string
72
76
required: true
77
+
- name: edition
78
+
description: The edition of the instance, can be ENTERPRISE or ENTERPRISE_PLUS.
79
+
varType: string
80
+
- name: database_version
81
+
description: The database version to use
82
+
varType: string
83
+
required: true
84
+
- name: availability_type
85
+
description: The availability type for the master instance. Can be either `REGIONAL` or `null`.
86
+
varType: string
87
+
defaultValue: REGIONAL
88
+
- name: enable_default_db
89
+
description: Enable or disable the creation of the default database
90
+
varType: bool
91
+
defaultValue: true
92
+
- name: db_name
93
+
description: The name of the default database to create
94
+
varType: string
95
+
defaultValue: default
96
+
- name: enable_default_user
97
+
description: Enable or disable the creation of the default user
98
+
varType: bool
99
+
defaultValue: true
100
+
- name: user_name
101
+
description: The name of the default user
102
+
varType: string
103
+
defaultValue: default
104
+
- name: user_host
105
+
description: The host for the default user
106
+
varType: string
107
+
defaultValue: "%"
108
+
- name: root_password
109
+
description: MySQL password for the root user.
110
+
varType: string
111
+
- name: user_password
112
+
description: The password for the default user. If not set, a random one will be generated and available in the generated_user_password output variable.
113
+
varType: string
114
+
defaultValue: ""
115
+
- name: deletion_protection
116
+
description: Used to block Terraform from deleting a SQL Instance.
117
+
varType: bool
118
+
defaultValue: true
119
+
- name: user_deletion_policy
120
+
description: "The deletion policy for the user. Setting ABANDON allows the resource to be abandoned rather than deleted. This is useful for Postgres, where users cannot be deleted from the API if they have been granted SQL roles. Possible values are: \"ABANDON\"."
121
+
varType: string
122
+
- name: data_cache_enabled
123
+
description: Whether data cache is enabled for the instance. Defaults to false. Feature is only available for ENTERPRISE_PLUS tier and supported database_versions
124
+
varType: bool
125
+
defaultValue: false
126
+
- name: additional_databases
127
+
description: A list of databases to be created in your cluster
128
+
varType: |-
129
+
list(object({
130
+
name = string
131
+
charset = string
132
+
collation = string
133
+
}))
134
+
defaultValue: []
135
+
- name: additional_users
136
+
description: A list of users to be created in your cluster. A random password would be set for the user if the `random_password` variable is set.
137
+
varType: |-
138
+
list(object({
139
+
name = string
140
+
password = string
141
+
random_password = bool
142
+
type = string
143
+
host = string
144
+
}))
145
+
defaultValue: []
146
+
- name: iam_users
147
+
description: A list of IAM users to be created in your CloudSQL instance. iam.users.type can be CLOUD_IAM_USER, CLOUD_IAM_SERVICE_ACCOUNT, CLOUD_IAM_GROUP and is required for type CLOUD_IAM_GROUP (IAM groups)
description: Sets random suffix at the end of the Cloud SQL resource name
75
168
varType: bool
@@ -78,14 +171,6 @@ spec:
78
171
description: The read replica database version to use. This var should only be used during a database update. The update sequence 1. read-replica 2. master, setting this to an updated version will cause the replica to update, then you may update the master with the var database_version and remove this field after update is complete
79
172
varType: string
80
173
defaultValue: ""
81
-
- name: database_version
82
-
description: The database version to use
83
-
varType: string
84
-
required: true
85
-
- name: region
86
-
description: The region of the Cloud SQL resources
87
-
varType: string
88
-
defaultValue: us-central1
89
174
- name: master_instance_name
90
175
description: The name of the existing instance that will act as the master in the replication setup.
91
176
varType: string
@@ -96,9 +181,6 @@ spec:
96
181
description: The tier for the master instance.
97
182
varType: string
98
183
defaultValue: db-n1-standard-1
99
-
- name: edition
100
-
description: The edition of the instance, can be ENTERPRISE or ENTERPRISE_PLUS.
101
-
varType: string
102
184
- name: zone
103
185
description: "The zone for the master instance, it should be something like: `us-central1-a`, `us-east1-c`."
104
186
varType: string
@@ -112,10 +194,6 @@ spec:
112
194
description: The activation policy for the master instance. Can be either `ALWAYS`, `NEVER` or `ON_DEMAND`.
113
195
varType: string
114
196
defaultValue: ALWAYS
115
-
- name: availability_type
116
-
description: The availability type for the master instance. Can be either `REGIONAL` or `null`.
117
-
varType: string
118
-
defaultValue: REGIONAL
119
197
- name: deletion_protection_enabled
120
198
description: Enables protection of an instance from accidental deletion across all surfaces (API, gcloud, Cloud Console and Terraform).
121
199
varType: bool
@@ -168,10 +246,6 @@ spec:
168
246
description: The key/value labels for the master instances.
169
247
varType: map(string)
170
248
defaultValue: {}
171
-
- name: data_cache_enabled
172
-
description: Whether data cache is enabled for the instance. Defaults to false. Feature is only available for ENTERPRISE_PLUS tier and supported database_versions
173
-
varType: bool
174
-
defaultValue: false
175
249
- name: deny_maintenance_period
176
250
description: The Deny Maintenance Period fields to prevent automatic maintenance from occurring during a 90-day time period. List accepts only one value. See [more details](https://cloud.google.com/sql/docs/mysql/maintenance)
description: The optional suffix to add to the read instance name
282
356
varType: string
283
357
defaultValue: ""
284
-
- name: db_name
285
-
description: The name of the default database to create
286
-
varType: string
287
-
defaultValue: default
288
358
- name: db_charset
289
359
description: The charset for the default database
290
360
varType: string
@@ -293,60 +363,6 @@ spec:
293
363
description: "The collation for the default database. Example: 'utf8_general_ci'"
294
364
varType: string
295
365
defaultValue: ""
296
-
- name: additional_databases
297
-
description: A list of databases to be created in your cluster
298
-
varType: |-
299
-
list(object({
300
-
name = string
301
-
charset = string
302
-
collation = string
303
-
}))
304
-
defaultValue: []
305
-
- name: user_name
306
-
description: The name of the default user
307
-
varType: string
308
-
defaultValue: default
309
-
- name: user_host
310
-
description: The host for the default user
311
-
varType: string
312
-
defaultValue: "%"
313
-
- name: root_password
314
-
description: MySQL password for the root user.
315
-
varType: string
316
-
- name: user_password
317
-
description: The password for the default user. If not set, a random one will be generated and available in the generated_user_password output variable.
318
-
varType: string
319
-
defaultValue: ""
320
-
- name: additional_users
321
-
description: A list of users to be created in your cluster. A random password would be set for the user if the `random_password` variable is set.
322
-
varType: |-
323
-
list(object({
324
-
name = string
325
-
password = string
326
-
random_password = bool
327
-
type = string
328
-
host = string
329
-
}))
330
-
defaultValue: []
331
-
- name: iam_users
332
-
description: A list of IAM users to be created in your CloudSQL instance
description: The optional timout that is applied to limit long database creates.
352
368
varType: string
@@ -366,22 +382,10 @@ spec:
366
382
description: List of modules or resources this module depends on.
367
383
varType: list(any)
368
384
defaultValue: []
369
-
- name: deletion_protection
370
-
description: Used to block Terraform from deleting a SQL Instance.
371
-
varType: bool
372
-
defaultValue: true
373
385
- name: read_replica_deletion_protection
374
386
description: Used to block Terraform from deleting replica SQL Instances.
375
387
varType: bool
376
388
defaultValue: false
377
-
- name: enable_default_db
378
-
description: Enable or disable the creation of the default database
379
-
varType: bool
380
-
defaultValue: true
381
-
- name: enable_default_user
382
-
description: Enable or disable the creation of the default user
383
-
varType: bool
384
-
defaultValue: true
385
389
- name: enable_random_password_special
386
390
description: Enable special characters in generated random passwords.
387
391
varType: bool
@@ -390,9 +394,6 @@ spec:
390
394
description: Enforce that clients use the connector library
391
395
varType: bool
392
396
defaultValue: false
393
-
- name: user_deletion_policy
394
-
description: "The deletion policy for the user. Setting ABANDON allows the resource to be abandoned rather than deleted. This is useful for Postgres, where users cannot be deleted from the API if they have been granted SQL roles. Possible values are: \"ABANDON\"."
0 commit comments