1.1 KiB
1.1 KiB
layout | page_title | sidebar_current | description |
---|---|---|---|
packet | Packet: packet_ssh_key | docs-packet-resource-ssh-key | Provides a Packet SSH key resource. |
packet_ssh_key
Provides a Packet SSH key resource to allow you manage SSH keys on your account. All ssh keys on your account are loaded on all new devices, they do not have to be explicitly declared on device creation.
Example Usage
# Create a new SSH key
resource "packet_ssh_key" "key1" {
name = "terraform-1"
public_key = "${file("/home/terraform/.ssh/id_rsa.pub")}"
}
Argument Reference
The following arguments are supported:
name
- (Required) The name of the SSH key for identificationpublic_key
- (Required) The public key. If this is a file, it can be read using the file interpolation function
Attributes Reference
The following attributes are exported:
id
- The unique ID of the keyname
- The name of the SSH keypublic_key
- The text of the public keyfingerprint
- The fingerprint of the SSH keycreated
- The timestamp for when the SSH key was createdupdated
- The timestamp for the last time the SSH key was udpated