opentelekomcloud_kms_key_v1

Manages a V1 key resource within KMS.

Example Usage

resource "opentelekomcloud_kms_key_v1" "key_1" {
  key_alias       = "key_1"
  pending_days    = "7"
  key_description = "first test key"
  realm           = "cn-north-1"
  is_enabled      = true
}

Argument Reference

The following arguments are supported:

  • key_alias - (Required) The alias in which to create the key. It is required when we create a new key. Changing this updates the alias of key.

  • key_description - (Optional) The description of the key as viewed in OpenTelekomCloud console. Changing this updates the description of key.

  • realm - (Optional) Region where a key resides. Changing this creates a new key.

  • pending_days - (Optional) Duration in days after which the key is deleted after destruction of the resource, must be between 7 and 1096 days. It doesn't have default value. It only be used when delete a key.

  • is_enabled - (Optional) Specifies whether the key is enabled. Defaults to true. Changing this updates the state of existing key.

Attributes Reference

The following attributes are exported:

Import

KMS Keys can be imported using the id, e.g.

$ terraform import opentelekomcloud_kms_key_v1.key_1 7056d636-ac60-4663-8a6c-82d3c32c1c64

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/opentelekomcloud/r/kms_key_v1.html