alicloud_kms_secret

This resouce used to create a secret and store its initial version.

Example Usage

Basic Usage

resource "alicloud_kms_secret" "default" {
  secret_name                   = "secret-foo"
  description                   = "from terraform"
  secret_data                   = "Secret data."
  version_id                    = "000000000001"
  force_delete_without_recovery = true
}

Argument Reference

The following arguments are supported:

Attributes Reference

Timeouts

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

Import

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

$ terraform import alicloud_kms_secret.default <id>