displague / deprecated-terraform-provider-linode

[OLD] Terraform provider plugin for Linode Cloud resources.. See
https://github.com/terraform-providers/terraform-provider-linode
Mozilla Public License 2.0
15 stars 5 forks source link

initial support for Linode SSH Keys (linode_sshkey) #34

Closed displague closed 6 years ago

displague commented 6 years ago

Adds support for managing Linode SSH Key resources.

resource "linode_sshkey" "foo" {
  label = "foo"
  ssh_key = "${chomp(file("~/.ssh/id_rsa.pub"))}"
}
resource "linode_instance" "foo" {
  image  = "linode/ubuntu18.04"
  label  = "foo"
  region = "us-east"
  type   = "g6-nanode-1"
  authorized_keys    = ["${linode_sshkey.foo.ssh_key}"]
  root_pass      = "..."
}