README.md 2.0 KB

terraform-hetzner-ssh

Terraform module for managing SSH keys in Hetzner.

Simplifies the process of importing SSH keys separate from other infrastructure so it can function as a dependency, and applies correct metadata (such as labels).

Requirements

Name Version
terraform >= 1.0.0
hcloud ~> 1.31.0

Providers

Name Version
hcloud ~> 1.31.0

Modules

No modules.

Resources

Name Type
hcloud_ssh_key.admin_keys resource
hcloud_ssh_key.user_keys resource

Inputs

Name Description Type Default Required
admin_keys Name and public key for all admins
list(object({
name = string
key = string
}))
[] no
user_keys Name and public key for all users
list(object({
name = string
key = string
}))
[] no

Outputs

Name Description
admin_key_fingerprints Hetzner IDs for admin SSH keys
admin_key_ids Hetzner IDs for admin SSH keys
user_key_fingerprints Hetzner IDs for user SSH keys
user_key_ids Hetzner IDs for user SSH keys