File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ layout : " digitalocean"
3+ page_title : " DigitalOcean: digitalocean_ssh_key"
4+ sidebar_current : " docs-do-resource-ssh-key"
5+ description : |-
6+ Provides a DigitalOcean SSH key resource.
7+ ---
8+
9+ # digitalocean\_ ssh_key
10+
11+ Provides a DigitalOcean SSH key resource to allow you manage SSH
12+ keys for Droplet access. Keys created with this resource
13+ can be referenced in your droplet configuration via their ID or
14+ fingerprint.
15+
16+ ## Example Usage
17+
18+ ```
19+ # Create a new SSH key
20+ resource "digitalocean_ssh_key" "default" {
21+ name = "Terraform Example"
22+ public_key = "${file("/Users/terraform/.ssh/id_rsa.pub")}"
23+ }
24+ ```
25+
26+ ## Argument Reference
27+
28+ The following arguments are supported:
29+
30+ * ` name ` - (Required) The name of the SSH key for identification
31+ * ` public_key ` - (Required) The public key. If this is a file, it
32+ can be read using the file interpolation function
33+
34+ ## Attributes Reference
35+
36+ The following attributes are exported:
37+
38+ * ` id ` - The unique ID of the key
39+ * ` name ` - The name of the SSH key
40+ * ` public_key ` - The text of the public key
41+ * ` fingerprint ` - The fingerprint of the SSH key
Original file line number Diff line number Diff line change 2323
2424 < li <%= sidebar_current ( "docs-do-resource-record" ) %> >
2525 < a href ="/docs/providers/do/r/record.html "> digitalocean_record</ a >
26+ </ li >
27+
28+ < li <%= sidebar_current ( "docs-do-resource-ssh-key" ) %> >
29+ < a href ="/docs/providers/do/r/ssh_key.html "> digitalocean_ssh_key</ a >
2630 </ li >
2731 </ ul >
2832 </ li >
You can’t perform that action at this time.
0 commit comments