alicloud_kms_alias

Create an alias for the master key (CMK).

Example Usage

Basic Usage

resource "alicloud_kms_key" "this" {
  pending_window_in_days = 7
}

resource "alicloud_kms_alias" "this" {
  alias_name = "alias/example_kms_alias"
  key_id     = alicloud_kms_key.this.id
}

Argument Reference

The following arguments are supported:

Attributes Reference

Import

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

$ terraform import alicloud_kms_alias.example alias/test_kms_alias