Skip to content

Commit 26cc99b

Browse files
committed
website: add digitalocean ssh_key documentation
cc/ @plalloni
1 parent 12bb4b8 commit 26cc99b

2 files changed

Lines changed: 45 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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

website/source/layouts/digitalocean.erb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
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>

0 commit comments

Comments
 (0)