Skip to content

Commit

Permalink
fix!: safer_mysql module's assign_public_ip input should be bool ty…
Browse files Browse the repository at this point in the history
…pe (#541)
  • Loading branch information
leavesster committed Nov 16, 2023
1 parent 5bcd8a4 commit 4521594
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/mysql-private/main.tf
Expand Up @@ -94,7 +94,7 @@ module "safer-mysql-db" {
}
]

assign_public_ip = "true"
assign_public_ip = true
vpc_network = module.network-safer-mysql-simple.network_self_link
allocated_ip_range = module.private-service-access.google_compute_global_address_name

Expand Down
2 changes: 1 addition & 1 deletion modules/safer_mysql/README.md
Expand Up @@ -168,7 +168,7 @@ mysql -S $HOME/mysql_sockets/myproject:region:instance -u user -p
| 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 |
| 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 |
| 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 |
| assign\_public\_ip | Set to true if the master instance should also have a public IP (less secure). | `string` | `false` | no |
| assign\_public\_ip | Set to true if the master instance should also have a public IP (less secure). | `bool` | `false` | no |
| availability\_type | The availability type for the master instance. Can be either `REGIONAL` or `null`. | `string` | `"REGIONAL"` | no |
| 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 |
| create\_timeout | The optional timout that is applied to limit long database creates. | `string` | `"30m"` | no |
Expand Down
2 changes: 1 addition & 1 deletion modules/safer_mysql/variables.tf
Expand Up @@ -211,7 +211,7 @@ variable "backup_configuration" {

variable "assign_public_ip" {
description = "Set to true if the master instance should also have a public IP (less secure)."
type = string
type = bool
default = false
}

Expand Down

0 comments on commit 4521594

Please sign in to comment.