resource "upstash_redis_database" "exampleDB" {
  database_name = "Terraform DB6"
  region        = "eu-west-1"
  tls           = "true"
  multizone     = "true"
}
resource "upstash_redis_database" "exampleDB" {
  database_name = "Terraform DB6"
  region        = "eu-west-1"
  tls           = "true"
  multizone     = "true"
}

Schema

Required

database_name
string
required
Name of the database
region
string
required
Region of the database. Possible values are: global, eu-west-1, us-east-1, us-west-1, ap-northeast-1 , eu-central1

Optional

auto_scale
bool
Upgrade to higher plans automatically when it hits quotas
eviction
bool
Enable eviction, to evict keys when your database reaches the max size
primary_region
string
Primary region for the database (Only works if region=‘global’. Can be one of [us-east-1, us-west-1, us-west-2, eu-central-1, eu-west-1, sa-east-1, ap-southeast-1, ap-southeast-2])
read_regions
set(string)
Read regions for the database (Only works if region=‘global’ and primary_region is set. Can be any combination of [us-east-1, us-west-1, us-west-2, eu-central-1, eu-west-1, sa-east-1, ap-southeast-1, ap-southeast-2], excluding the one given as primary.)
tls
bool
When enabled, data is encrypted in transit. (If changed to false from true, results in deletion and recreation of the resource)

Read-Only

creation_time
number
Creation time of the database
database_id
string
Unique Database ID for created database
database_type
string
Type of the database
db_daily_bandwidth_limit
number
Daily bandwidth limit for the database
db_disk_threshold
number
Disk threshold for the database
db_max_clients
number
Max clients for the database
db_max_commands_per_second
number
Max commands per second for the database
db_max_entry_size
number
Max entry size for the database
db_max_request_size
number
Max request size for the database
db_memory_threshold
number
Memory threshold for the database
endpoint
string
Database URL for connection
id
string
The ID of this resource.
password
string
Password of the database
port
number
Port of the endpoint
read_only_rest_token
string
Rest Token for the database.
rest_token
string
Rest Token for the database.
state
string
State of the database
user_email
string
User email for the database