Skip to content
Open
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
9 changes: 2 additions & 7 deletions modules/datastore/mysql/aws-rds/1.0/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ variable "instance" {
version = string
spec = object({
version_config = object({
version = string
database_name = string
master_username = string
version = string
database_name = string
})
sizing = object({
instance_class = string
Expand Down Expand Up @@ -68,10 +67,6 @@ variable "instance" {
error_message = "Database name must be between 1 and 64 characters"
}

validation {
condition = length(var.instance.spec.version_config.master_username) >= 1 && length(var.instance.spec.version_config.master_username) <= 16
error_message = "Master username must be between 1 and 16 characters"
}
}

variable "instance_name" {
Expand Down