alicloud_kms_ciphertext

Encrypt a given plaintext with KMS. The plaintext gets re-encrypted on each apply, resulting in a changed ciphertext. If a stable ciphertext is needed use the alicloud_kms_ciphertext resource.

Example Usage

Basic Usage

resource "alicloud_kms_key" "key" {
  description = "example key"
  is_enabled  = true
}

data "alicloud_kms_ciphertext" "encrypted" {
  key_id    = alicloud_kms_key.key.id
  plaintext = "example"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported in addition to the arguments listed above: