Skip to content

Commit

Permalink
fix: Update validaiton error message
Browse files Browse the repository at this point in the history
  • Loading branch information
timckt committed Sep 24, 2024
1 parent 96f359c commit 1f97e9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ variable "db_allocated_storage" {
: var.storage_type == "gp3" ? var.allocated_storage >= 20
: true
)
error_message = "Invalid 'allocated_storage':
error_message = <<EOF
"Invalid 'allocated_storage':
- When 'storage_type' is 'io2' and 'engine' is SQL Server, it must be at least 20 GiB.
- When 'storage_type' is 'io2' and 'engine' is not SQL Server, it must be at least 100 GiB.
- When 'storage_type' is 'gp3', it must be at least 20 GiB."
EOF
}
}

Expand Down

0 comments on commit 1f97e9d

Please sign in to comment.