Skip to content

Commit 4521594

Browse files
authored
fix!: safer_mysql module's assign_public_ip input should be bool type (#541)
1 parent 5bcd8a4 commit 4521594

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/mysql-private/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ module "safer-mysql-db" {
9494
}
9595
]
9696

97-
assign_public_ip = "true"
97+
assign_public_ip = true
9898
vpc_network = module.network-safer-mysql-simple.network_self_link
9999
allocated_ip_range = module.private-service-access.google_compute_global_address_name
100100

modules/safer_mysql/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ mysql -S $HOME/mysql_sockets/myproject:region:instance -u user -p
168168
| additional\_databases | A list of databases to be created in your cluster | <pre>list(object({<br> name = string<br> charset = string<br> collation = string<br> }))</pre> | `[]` | no |
169169
| additional\_users | 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. | <pre>list(object({<br> name = string<br> password = string<br> host = string<br> type = string<br> random_password = bool<br> }))</pre> | `[]` | no |
170170
| allocated\_ip\_range | Existing allocated IP range name for the Private IP CloudSQL instance. The networks needs to be configured with https://cloud.google.com/vpc/docs/configure-private-services-access. | `string` | `null` | no |
171-
| assign\_public\_ip | Set to true if the master instance should also have a public IP (less secure). | `string` | `false` | no |
171+
| assign\_public\_ip | Set to true if the master instance should also have a public IP (less secure). | `bool` | `false` | no |
172172
| availability\_type | The availability type for the master instance. Can be either `REGIONAL` or `null`. | `string` | `"REGIONAL"` | no |
173173
| backup\_configuration | The backup\_configuration settings subblock for the database setings | <pre>object({<br> binary_log_enabled = bool<br> enabled = bool<br> start_time = string<br> location = string<br> transaction_log_retention_days = string<br> retained_backups = number<br> retention_unit = string<br> })</pre> | <pre>{<br> "binary_log_enabled": false,<br> "enabled": false,<br> "location": null,<br> "retained_backups": null,<br> "retention_unit": null,<br> "start_time": null,<br> "transaction_log_retention_days": null<br>}</pre> | no |
174174
| create\_timeout | The optional timout that is applied to limit long database creates. | `string` | `"30m"` | no |

modules/safer_mysql/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ variable "backup_configuration" {
211211

212212
variable "assign_public_ip" {
213213
description = "Set to true if the master instance should also have a public IP (less secure)."
214-
type = string
214+
type = bool
215215
default = false
216216
}
217217

0 commit comments

Comments
 (0)