Skip to content

Commit 18e1788

Browse files
authored
feat: Add variable to manage engine settings (#40)
1 parent a39f0a5 commit 18e1788

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ module "my_cluster" {
5353
| <a name="input_replica_enabled"></a> [replica_enabled](#input_replica_enabled) | Whether to create a read replica or not. | `bool` | `true` | no |
5454
| <a name="input_replica_private_network"></a> [replica_private_network](#input_replica_private_network) | Describes the private network you want to connect to your read replica. | ```object({ pn_id = string ip_net = string })``` | `null` | no |
5555
| <a name="input_replica_region"></a> [replica_region](#input_replica_region) | Region in which the replica should be created. Ressource will be created in the same region than the master if null. | `string` | `null` | no |
56+
| <a name="input_settings"></a> [settings](#input_settings) | Database settings configuration | `map(string)` | `null` | no |
5657
| <a name="input_tags"></a> [tags](#input_tags) | Tags associated with the server and dedicated ip address. | `list(string)` | `[]` | no |
5758
| <a name="input_user_password"></a> [user_password](#input_user_password) | Password for the first user of the database instance. A random password will be generated if null. | `string` | `null` | no |
5859
| <a name="input_volume_size_in_gb"></a> [volume_size_in_gb](#input_volume_size_in_gb) | Volume size (in GB) when volume_type is set to bssd. Must be a multiple of 5000000000. | `number` | `null` | no |

main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ resource "scaleway_rdb_instance" "this" {
3838
enable_ipam = try(var.private_network.enable_ipam, false)
3939
}
4040
}
41+
42+
settings = var.settings
4143
}
4244

4345
resource "scaleway_rdb_read_replica" "this" {

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ variable "node_type" {
2020
type = string
2121
}
2222

23+
variable "settings" {
24+
description = "Database settings configuration"
25+
type = map(string)
26+
default = null
27+
}
28+
2329
## Network
2430
variable "private_network" {
2531
description = "Describes the private network you want to connect to your cluster. If not set, a public network will be provided."

0 commit comments

Comments
 (0)