Skip to content

Commit 5138365

Browse files
authored
add availability_type support for safer_mysql (#104)
1 parent d3ed591 commit 5138365

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

modules/safer_mysql/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ mysql -S $HOME/mysql_sockets/myproject:region:instance -u user -p
169169
| additional\_users | A list of users to be created in your cluster | object | `<list>` | no |
170170
| assign\_public\_ip | Set to true if the master instance should also have a public IP (less secure). | string | `"false"` | no |
171171
| authorized\_gae\_applications | The list of authorized App Engine project names | list(string) | `<list>` | no |
172+
| availability\_type | The availability type for the master instance. Can be either `REGIONAL` or `null`. | string | `"REGIONAL"` | no |
172173
| backup\_configuration | The backup_configuration settings subblock for the database setings | object | `<map>` | no |
173174
| create\_timeout | The optional timout that is applied to limit long database creates. | string | `"15m"` | no |
174175
| database\_flags | The database flags for the master instance. See [more details](https://cloud.google.com/sql/docs/mysql/flags) | object | `<list>` | no |

modules/safer_mysql/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ module "safer_mysql" {
2323
zone = var.zone
2424
tier = var.tier
2525
activation_policy = var.activation_policy
26+
availability_type = var.availability_type
2627
authorized_gae_applications = var.authorized_gae_applications
2728
disk_autoresize = var.disk_autoresize
2829
disk_size = var.disk_size

modules/safer_mysql/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ variable "activation_policy" {
6060
default = "ALWAYS"
6161
}
6262

63+
variable "availability_type" {
64+
description = "The availability type for the master instance. Can be either `REGIONAL` or `null`."
65+
type = string
66+
default = "REGIONAL"
67+
}
68+
6369
variable "authorized_gae_applications" {
6470
description = "The list of authorized App Engine project names"
6571
type = list(string)

0 commit comments

Comments
 (0)