Vultr Managed Databases for Valkey is a highly-available Redis®-compatible in-memory database with flexible data structures. You can use the NoSQL database as a cache, streaming engine, and message broker. You can provision a CPU or memory-optimized database cluster around the globe in any Vultr location. Vultr Managed Databases for Valkey support trusted sources and SSL certificates for security.
Follow this guide to provision Vultr Managed Databases for Valkey using the Vultr Customer Portal, API, CLI, or Terraform.
Send a GET
request to the List Managed Database Plans endpoint to view all available plans.
$ curl "https://api.vultr.com/v2/databases/plans" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a POST
request to the Create Database endpoint to create a new database instance.
$ curl "https://api.vultr.com/v2/databases" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"database_engine" : "valkey",
"database_engine_version" : "7",
"plan" : "vultr-dbaas-startup-occ-mo-2-26-16",
"region" : "jnb",
"label" : "Remote-Valkey-Db"
}'
Visit the Create Database endpoint to view additional attributes to add to your request.
Send a GET
request to the List Managed Databases endpoint to list all database instances.
$ curl "https://api.vultr.com/v2/databases" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json"
List the available database plans.
$ vultr-cli database plan list
Create a new database instance.
$ vultr-cli database create \
--database-engine valkey \
--database-engine-version 7 \
--plan vultr-dbaas-startup-occ-mo-2-26-16 \
--region jnb \
--vpc-id 24ab6b57-845b-4354-a243-9bcafb4bd505 \
--label Remote-Valkey-Db
List all database instances.
$ vultr-cli database list --summarize
Run vultr-cli database create --help
to view all options.
Ensure the Vultr Terraform provider is configured in your Terraform project.
Define the Managed Database for Valkey (Redis-compatible) in your Terraform configuration file.
terraform {
required_providers {
vultr = {
source = "vultr/vultr"
version = "~> 2.26"
}
}
}
provider "vultr" {}
resource "vultr_database" "valkey" {
database_engine = "valkey"
database_engine_version = "7"
region = "jnb" # e.g., ewr, ams, sgp, jnb
plan = "vultr-dbaas-startup-occ-mo-2-26-16"
label = "valkey-db-1"
# Optional
# vpc_id = "<vpc-id>"
# trusted_ips = ["192.0.2.1", "192.0.2.2"]
}
output "valkey_host" { value = vultr_database.valkey.host }
output "valkey_port" { value = vultr_database.valkey.port }
Apply the configuration and observe the following output:
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
No comments yet.