文档

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.

-> NOTE: Available since v1.133.0.

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:

  • key_pair_name - (Required, ForceNew) The name of the key pair.
  • version - (Required, ForceNew) The version number.

Attributes Reference

The following attributes are exported:

  • id - The resource ID of Key Pair. The value formats as <key_pair_name>:<version>.

Import

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

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

  • 本页导读 (0)
文档反馈