Provides a persistent, globally consistent key-value store accessible to Compute services during request processing.
Basic usage:
# IMPORTANT: Deleting a KV Store requires first deleting its resource_link.
# This requires a two-step `terraform apply` as we can't guarantee deletion order.
# e.g. resource_link deletion within fastly_service_compute might not finish first.
resource "fastly_kvstore" "example" {
name = "my_kv_store"
}
resource "fastly_service_compute" "example" {
name = "my_compute_service"
domain {
name = "demo.example.com"
}
package {
filename = "package.tar.gz"
source_code_hash = data.fastly_package_hash.example.hash
}
resource_link {
name = "my_resource_link"
resource_id = fastly_kvstore.example.id
}
force_destroy = true
}
data "fastly_package_hash" "example" {
filename = "package.tar.gz"
}
Fastly KV Stores can be imported using their Store ID, e.g.
$ terraform import fastly_kvstore.example xxxxxxxxxxxxxxxxxxxx
name
(String) A unique name to identify the KV Store. It is important to note that changing this attribute will delete and recreate the KV Store, and discard the current entries. You MUST first delete the associated resource_link block from your service before modifying this field.force_destroy
(Boolean) Allow the KV Store to be deleted, even if it contains entries. Defaults to false.location
(String) The regional location of the KV Store. Valid values are US
, EU
, ASIA
, and AUS
.id
(String) The ID of this resource.