alicloud_dcdn_kv

Provides a Dcdn Kv resource.

For information about Dcdn Kv and how to use it, see What is Kv.

Example Usage

Basic Usage

variable "name" {
  default = "terraform-example"
}

resource "random_integer" "default" {
  min = 10000
  max = 99999
}

resource "alicloud_dcdn_kv_namespace" "default" {
  description = var.name
  namespace   = "${var.name}-${random_integer.default.result}"
}

resource "alicloud_dcdn_kv" "default" {
  value     = "example-value"
  key       = "${var.name}-${random_integer.default.result}"
  namespace = alicloud_dcdn_kv_namespace.default.namespace
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

Dcdn Kv can be imported using the id, e.g.

$ terraform import alicloud_dcdn_kv.example <namespace>:<key>