Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to set sbs(5k or 15k) volume types for rdb instance #49

Merged
merged 2 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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