Skip to content

dhoppeIT/terraform-hcloud-ssh_key

Repository files navigation

terraform-hcloud-ssh_key

Terraform module to manage the following Hetzner Cloud resource:

  • hcloud_ssh_key

Graph

Graph

Usage

Copy and paste into your Terraform configuration, insert the variables and run terraform init:

module "hcloud_ssh_key" {
  source  = "dhoppeIT/ssh_key/hcloud"
  version = "~> 0.2"

  name       = "terraform"
  public_key = "~/.ssh/id_terraform.pub"
}

Requirements

Name Version
terraform >= 1.0
hcloud ~> 1.0

Providers

Name Version
hcloud 1.36.0

Modules

No modules.

Resources

Name Type
hcloud_ssh_key.default resource

Inputs

Name Description Type Default Required
labels User-defined labels (key-value pairs) should be created with map(string) {} no
name Name of the SSH key string n/a yes
public_key The public key string n/a yes

Outputs

Name Description
fingerprint The fingerprint of the SSH key
id The unique ID of the key
name The name of the SSH key
public_key The text of the public key

Authors

Created and maintained by Dennis Hoppe.

License

Apache 2 licensed. See LICENSE for full details.