Terraform module for managing SSH keys in Hetzner Cloud

Tim Campbell 488d6f2969 Merge pull request #1 from mastodon/INF-117-hetzner-ssh-module 1 年之前
README.md 43d4e67735 README 1 年之前
main.tf 6b0df1617f Created terraform module for managing SSH keys 1 年之前
output.tf 7d2d972a5f Fix description typo 1 年之前
variables.tf 6b0df1617f Created terraform module for managing SSH keys 1 年之前
versions.tf 6b0df1617f Created terraform module for managing SSH keys 1 年之前

README.md

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