Skip to content

Commit

Permalink
feat: Add possibility to set sbs(5k or 15k) volume types for rdb inst…
Browse files Browse the repository at this point in the history
…ance (#49)

Signed-off-by: abpetit34 <[email protected]>
  • Loading branch information
abpetit34 authored Dec 2, 2024
1 parent c2a59d4 commit 21e756b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ module "my_cluster" {
| <a name="input_tags"></a> [tags](#input_tags) | Tags associated with the server and dedicated ip address. | `list(string)` | `[]` | no |
| <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 |
| <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 |
| <a name="input_volume_type"></a> [volume_type](#input_volume_type) | Type of volume where data are stored (bssd or lssd). | `string` | `"lssd"` | no |
| <a name="input_volume_type"></a> [volume_type](#input_volume_type) | Type of volume where data are stored (bssd, lssd, sbs_5k or sbs_15k). | `string` | `"lssd"` | no |

## Outputs

Expand Down
6 changes: 3 additions & 3 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ variable "enable_encryption" {
}

variable "volume_type" {
description = "Type of volume where data are stored (bssd or lssd)."
description = "Type of volume where data are stored (bssd, lssd, sbs_5k or sbs_15k)."
type = string
default = "lssd"

validation {
condition = contains(["bssd", "lssd"], var.volume_type)
error_message = "Volumes can only be one of 'bssd' or 'lssd'."
condition = contains(["bssd", "lssd", "sbs_5k", "sbs_15k"], var.volume_type)
error_message = "Volumes can only be one of 'bssd', 'lssd', 'sbs_5k' or 'sbs_15k'."
}
}

Expand Down

0 comments on commit 21e756b

Please sign in to comment.