» tencentcloud_key_pair
Provides a key pair resource.
» Example Usage
Basic Usage
resource "tencentcloud_key_pair" "foo" {
key_name = "from_terraform_public_key"
public_key = "ssh-rsa AAAAB3NzaSuperLongString foo@bar"
}
» Argument Reference
The following arguments are supported:
-
key_name
- (Force new resource) The key pair's name. It is the only in one TencentCloud account. -
public_key
- (Force new resource) You can import an existing public key and using TencentCloud key pair to manage it.
» Attributes Reference
-
id
- The id of the key pair, something likeskey-xxxxxxx
, use this for instance creation and resetting.
» Import
Key pairs can be imported using the id, e.g.
terraform import tencentcloud_key_pair.foo skey-17634f05