Skip to content

Terraform module for managing SSH keys in Hetzner Cloud

Notifications You must be signed in to change notification settings

mastodon/terraform-hetzner-ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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