Skip to content

Latest commit

 

History

History
90 lines (68 loc) · 1.35 KB

cloudflare_workers_kv.md

File metadata and controls

90 lines (68 loc) · 1.35 KB

cloudflare_workers_kv

back

Index

Terraform

terraform {
  required_providers {
    cloudflare = ">= 2.19.2"
  }
}

top

Example Usage

module "cloudflare_workers_kv" {
  source = "./modules/cloudflare/r/cloudflare_workers_kv"

  # key - (required) is a type of string
  key = null
  # namespace_id - (required) is a type of string
  namespace_id = null
  # value - (required) is a type of string
  value = null
}

top

Variables

variable "key" {
  description = "(required)"
  type        = string
}

variable "namespace_id" {
  description = "(required)"
  type        = string
}

variable "value" {
  description = "(required)"
  type        = string
}

top

Resource

resource "cloudflare_workers_kv" "this" {
  # key - (required) is a type of string
  key = var.key
  # namespace_id - (required) is a type of string
  namespace_id = var.namespace_id
  # value - (required) is a type of string
  value = var.value
}

top

Outputs

output "id" {
  description = "returns a string"
  value       = cloudflare_workers_kv.this.id
}

output "this" {
  value = cloudflare_workers_kv.this
}

top