FEATURES PRICING ABOUT DOCS LOGIN

digitalocean_ssh_key

Provides a DigitalOcean SSH key resource to allow you manage SSH keys for Droplet access. Keys created with this resource can be referenced in your droplet configuration via their ID or fingerprint.

Example Usage

# Create a new SSH key
resource "digitalocean_ssh_key" "default" {
    name = "Terraform Example"
    public_key = "${file("/Users/terraform/.ssh/id_rsa.pub")}"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

SSH Keys can be imported using the ssh key id, e.g.

terraform import digitalocean_ssh_key.mykey 263654

See the source of this document at Terraform.io

REQUEST A DEMO