alicloud_ens_key_pair

Provides a ENS Key Pair resource.

For information about ENS Key Pair and how to use it, see What is Key Pair.

Example Usage

Basic Usage

variable "name" {
  default = "terraform-example"
}
resource "alicloud_ens_key_pair" "example" {
  key_pair_name = var.name
  version       = "2017-11-10"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

ENS Key Pair can be imported using the id, e.g.

$ terraform import alicloud_ens_key_pair.example <key_pair_name>:<version>