Provides a resource to manage a Cloudflare Workers KV Pair.
resource "cloudflare_workers_kv_namespace" "example_ns" {
account_id = "f037e56e89293a057740de681ac9abbe"
title = "test-namespace"
}
resource "cloudflare_workers_kv" "example" {
account_id = "f037e56e89293a057740de681ac9abbe"
namespace_id = cloudflare_workers_kv_namespace.example_ns.id
key = "test-key"
value = "test value"
}
account_id
(String) The account identifier to target for the resource.key
(String) Name of the KV pair. Modifying this attribute will force creation of a new resource.namespace_id
(String) The ID of the Workers KV namespace in which you want to create the KV pair. Modifying this attribute will force creation of a new resource.value
(String) Value of the KV pair.id
(String) The ID of this resource.Import is supported using the following syntax:
$ terraform import cloudflare_workers_kv.example <account_id>/<namespace_id>/<key_name>