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/README.md
+6-9Lines changed: 6 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,9 @@
11
11
| backup_configuration | The backup configuration block of the Cloud SQL resources This argument will be passed through the master instance directrly.<br><br>See [more details](https://www.terraform.io/docs/providers/google/r/sql_database_instance.html). | map |`<map>`| no |
12
12
| database_flags | The database flags for the master instance. See [more details](https://cloud.google.com/sql/docs/mysql/flags)| list |`<list>`| no |
13
13
| database_version | The database version to use | string | - | yes |
14
-
| databases | The list of databases for the instacne | list |`<list>`| no |
14
+
| db_charset | The charset for the default database | string | `` | no |
15
+
| db_collation | The collation for the default database. Example: 'utf8_general_ci' | string | `` | no |
16
+
| db_name | The name of the default database to create | string |`default`| no |
15
17
| disk_autoresize | Configuration to increase storage size | string |`true`| no |
16
18
| disk_size | The disk size for the master instance | string |`10`| no |
17
19
| disk_type | The disk type for the master instance. | string |`PD_SSD`| no |
@@ -58,18 +60,16 @@
58
60
| read_replica_zones | The zones for the read replica instancess, it should be something like: `a,b,c`. Given zones are used rotationally for creating read replicas. | string | `` | no |
59
61
| region | The region of the Cloud SQL resources | string |`us-central1`| no |
60
62
| tier | The tier for the master instance. | string |`db-n1-standard-1`| no |
63
+
| user_host | The host for the default user | string |`%`| no |
61
64
| user_labels | The key/value labels for the master instances. | map |`<map>`| no |
62
-
| users | The list of users on the database | list |`<list>`| no |
65
+
| user_name | The name of the default user | string |`default`| no |
66
+
| user_password | The password for the default user. If not set, a random one will be generated and available in the generated_user_password output variable. | string | `` | no |
63
67
| zone | The zone for the master instance, it should be something like: `a`, `c`. | string | - | yes |
64
68
65
69
## Outputs
66
70
67
71
| Name | Description |
68
72
|------|-------------|
69
-
| database_charsets | The list of database charsets |
70
-
| database_collation | The list of database collations |
71
-
| database_names | The list of database names |
72
-
| database_self_links | The URIs of the databases |
73
73
| failover-replica_instance_connection_name | The connection name of the failover-replica instance to be used in connection strings |
74
74
| failover-replica_instance_first_ip_address | The first IPv4 address of the addesses assigned for the failover-replica instance |
75
75
| failover-replica_instance_name | The instance name for the failover replica instance |
@@ -90,8 +90,5 @@
90
90
| replicas_instance_self_links | The URIs of the replica instances |
91
91
| replicas_instance_server_ca_certs | The CA certificates information used to connect to the replica instances via SSL |
92
92
| replicas_instance_service_account_email_addresses | The service account email addresses assigned to the replica instances |
93
-
| user_hosts | The list of user hosts for the database |
94
-
| user_names | The list of user names for the database |
95
-
| user_passwords | The list of user passwords for the database |
description="The list of databases for the instacne"
291
+
variable"db_name" {
292
+
description="The name of the default database to create"
293
+
default="default"
295
294
}
296
295
297
-
// for google_sql_user
298
-
variable"users" {
299
-
default=[]
300
-
description="The list of users on the database"
296
+
variable"db_charset" {
297
+
description="The charset for the default database"
298
+
default=""
299
+
}
300
+
301
+
variable"db_collation" {
302
+
description="The collation for the default database. Example: 'utf8_general_ci'"
303
+
default=""
304
+
}
305
+
306
+
variable"user_name" {
307
+
description="The name of the default user"
308
+
default="default"
309
+
}
310
+
311
+
variable"user_host" {
312
+
description="The host for the default user"
313
+
default="%"
314
+
}
315
+
316
+
variable"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."
Copy file name to clipboardExpand all lines: modules/postgresql/README.md
+6-9Lines changed: 6 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,9 @@
12
12
| backup_configuration | The backup configuration block of the Cloud SQL resources This argument will be passed through the master instance directrly.<br><br>See [more details](https://www.terraform.io/docs/providers/google/r/sql_database_instance.html). | map |`<map>`| no |
13
13
| database_flags | The database flags for the master instance. See [more details](https://cloud.google.com/sql/docs/mysql/flags)| list |`<list>`| no |
14
14
| database_version | The database version to use | string | - | yes |
15
-
| databases | The list of databases for the instacne | list |`<list>`| no |
15
+
| db_charset | The charset for the default database | string | `` | no |
16
+
| db_collation | The collation for the default database. Example: 'en_US.UTF8' | string | `` | no |
17
+
| db_name | The name of the default database to create | string |`default`| no |
16
18
| disk_autoresize | Configuration to increase storage size. | string |`true`| no |
17
19
| disk_size | The disk size for the master instance. | string |`10`| no |
18
20
| disk_type | The disk type for the master instance. | string |`PD_SSD`| no |
@@ -43,18 +45,16 @@
43
45
| read_replica_zones | The zones for the read replica instancess, it should be something like: `a,b,c`. Given zones are used rotationally for creating read replicas. | string | `` | no |
44
46
| region | The region of the Cloud SQL resources | string |`us-central1`| no |
45
47
| tier | The tier for the master instance. | string |`db-f1-micro`| no |
48
+
| user_host | The host for the default user | string |`%`| no |
46
49
| user_labels | The key/value labels for the master instances. | map |`<map>`| no |
47
-
| users | The list of users on the database | list |`<list>`| no |
50
+
| user_name | The name of the default user | string |`default`| no |
51
+
| user_password | The password for the default user. If not set, a random one will be generated and available in the generated_user_password output variable. | string | `` | no |
48
52
| zone | The zone for the master instance, it should be something like: `a`, `c`. | string | - | yes |
49
53
50
54
## Outputs
51
55
52
56
| Name | Description |
53
57
|------|-------------|
54
-
| database_charsets | The list of database charsets |
55
-
| database_collation | The list of database collations |
56
-
| database_names | The list of database names |
57
-
| database_self_links | The URIs of the databases |
58
58
| generated_user_password | The auto generated default user password if not input password was provided |
59
59
| instance_address | The IPv4 addesses assigned for the master instance |
60
60
| instance_connection_name | The connection name of the master instance to be used in connection strings |
@@ -69,8 +69,5 @@
69
69
| replicas_instance_self_links | The URIs of the replica instances |
70
70
| replicas_instance_server_ca_certs | The CA certificates information used to connect to the replica instances via SSL |
71
71
| replicas_instance_service_account_email_addresses | The service account email addresses assigned to the replica instances |
72
-
| user_hosts | The list of user hosts for the database |
73
-
| user_names | The list of user names for the database |
74
-
| user_passwords | The list of user passwords for the database |
description="The list of databases for the instacne"
211
+
variable"db_name" {
212
+
description="The name of the default database to create"
213
+
default="default"
215
214
}
216
215
217
-
// for google_sql_user
218
-
variable"users" {
219
-
default=[]
220
-
description="The list of users on the database"
216
+
variable"db_charset" {
217
+
description="The charset for the default database"
218
+
default=""
219
+
}
220
+
221
+
variable"db_collation" {
222
+
description="The collation for the default database. Example: 'en_US.UTF8'"
223
+
default=""
224
+
}
225
+
226
+
variable"user_name" {
227
+
description="The name of the default user"
228
+
default="default"
229
+
}
230
+
231
+
variable"user_host" {
232
+
description="The host for the default user"
233
+
default="%"
234
+
}
235
+
236
+
variable"user_password" {
237
+
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."
0 commit comments