Provides a Elastic Cloud Phone (ECP) Key Pair resource.
For information about Elastic Cloud Phone (ECP) Key Pair and how to use it, see What is Key Pair.
Basic Usage
resource "alicloud_ecp_key_pair" "example" {
key_pair_name = "my-KeyPair"
public_key_body = "ssh-rsa AAAAxxxxxxxxxxtyuudsfsg"
}
The following arguments are supported:
key_pair_name
- (Required, ForceNew) The Key Name.public_key_body
- (Required) The public key body.The following attributes are exported:
id
- The resource ID in terraform of Key Pair. Its value is same as key_pair_name
.Elastic Cloud Phone (ECP) Key Pair can be imported using the id, e.g.
$ terraform import alicloud_ecp_key_pair.example <key_pair_name>