{"id":51429506,"url":"https://github.com/terraform-hc-modules/terraform-hcloud-compute","last_synced_at":"2026-07-05T03:02:12.193Z","repository":{"id":352635064,"uuid":"1215947949","full_name":"terraform-hc-modules/terraform-hcloud-compute","owner":"terraform-hc-modules","description":"Terraform module for Hetzner Cloud compute (Server, Volume, SSH Key, Placement Group, Snapshot)","archived":false,"fork":false,"pushed_at":"2026-05-10T06:06:03.000Z","size":53,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-24T05:06:20.814Z","etag":null,"topics":["compute","hcloud","hetzner","server","terraform","terraform-module","volume"],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/terraform-hc-modules.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":[]}},"created_at":"2026-04-20T12:14:21.000Z","updated_at":"2026-04-22T09:27:33.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/terraform-hc-modules/terraform-hcloud-compute","commit_stats":null,"previous_names":["terraform-hc-modules/terraform-hcloud-compute"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/terraform-hc-modules/terraform-hcloud-compute","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-hc-modules%2Fterraform-hcloud-compute","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-hc-modules%2Fterraform-hcloud-compute/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-hc-modules%2Fterraform-hcloud-compute/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-hc-modules%2Fterraform-hcloud-compute/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terraform-hc-modules","download_url":"https://codeload.github.com/terraform-hc-modules/terraform-hcloud-compute/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-hc-modules%2Fterraform-hcloud-compute/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35141966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-05T02:00:06.290Z","response_time":100,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compute","hcloud","hetzner","server","terraform","terraform-module","volume"],"created_at":"2026-07-05T03:02:11.501Z","updated_at":"2026-07-05T03:02:12.181Z","avatar_url":"https://github.com/terraform-hc-modules.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hetzner Cloud Compute Module\n\n[![Terraform](https://img.shields.io/badge/Terraform-%3E%3D1.0-blueviolet)](https://www.terraform.io/)\n[![License: MPL-2.0](https://img.shields.io/badge/License-MPL--2.0-blue.svg)](https://opensource.org/licenses/MPL-2.0)\n[![CI](https://github.com/terraform-hc-modules/terraform-hcloud-compute/actions/workflows/ci.yml/badge.svg)](https://github.com/terraform-hc-modules/terraform-hcloud-compute/actions/workflows/ci.yml)\n[![Release](https://img.shields.io/github/v/release/terraform-hc-modules/terraform-hcloud-compute)](https://github.com/terraform-hc-modules/terraform-hcloud-compute/releases)\n\n\nTerraform module for compute resources on Hetzner Cloud including Server, Volume, SSH Key, Placement Group, and Snapshot.\n\n## Usage\n\n### Complete Example\n\n```hcl\nmodule \"compute\" {\n  source  = \"terraform-hc-modules/compute/hcloud\"\n  version = \"~\u003e 0.1\"\n\n  name        = \"my-server\"\n  server_type = \"cx22\"\n  image       = \"ubuntu-24.04\"\n  location    = \"fsn1\"\n\n  create_ssh_key = true\n  public_key     = file(\"~/.ssh/id_rsa.pub\")\n\n  create_volume   = true\n  volume_size     = 50\n  volume_format   = \"ext4\"\n  volume_automount = true\n\n  create_placement_group = true\n\n  labels = {\n    Environment = \"production\"\n  }\n}\n```\n\n### Using Submodules Individually\n\n```hcl\n# Server only\nmodule \"server\" {\n  source  = \"terraform-hc-modules/compute/hcloud//modules/server\"\n  version = \"~\u003e 0.1\"\n\n  name        = \"my-server\"\n  server_type = \"cx22\"\n  image       = \"ubuntu-24.04\"\n}\n\n# SSH Key only\nmodule \"ssh_key\" {\n  source  = \"terraform-hc-modules/compute/hcloud//modules/ssh-key\"\n  version = \"~\u003e 0.1\"\n\n  name       = \"my-key\"\n  public_key = file(\"~/.ssh/id_rsa.pub\")\n}\n\n# Volume only\nmodule \"volume\" {\n  source  = \"terraform-hc-modules/compute/hcloud//modules/volume\"\n  version = \"~\u003e 0.1\"\n\n  name     = \"my-volume\"\n  size     = 50\n  location = \"fsn1\"\n}\n```\n\n## Submodules\n\n| Module | Description |\n|--------|-------------|\n| [server](modules/server) | Server with network attachments and rDNS |\n| [volume](modules/volume) | Block storage volumes |\n| [ssh-key](modules/ssh-key) | SSH keys |\n| [placement-group](modules/placement-group) | Anti-affinity groups |\n| [snapshot](modules/snapshot) | Server snapshots |\n\n## Examples\n\n- [Simple](examples/simple) - Server only\n- [Complete](examples/complete) - Server + Volume + SSH Key + Placement Group\n- [Snapshot](examples/snapshot) - Server with snapshot\n\n\u003c!-- BEGIN_TF_DOCS --\u003e\n## Requirements\n\n| Name | Version |\n| ---- | ------- |\n| \u003ca name=\"requirement_terraform\"\u003e\u003c/a\u003e [terraform](#requirement\\_terraform) | \u003e= 1.0 |\n| \u003ca name=\"requirement_hcloud\"\u003e\u003c/a\u003e [hcloud](#requirement\\_hcloud) | \u003e= 1.45 |\n\n## Providers\n\nNo providers.\n\n## Modules\n\n| Name | Source | Version |\n| ---- | ------ | ------- |\n| \u003ca name=\"module_placement_group\"\u003e\u003c/a\u003e [placement\\_group](#module\\_placement\\_group) | ./modules/placement-group | n/a |\n| \u003ca name=\"module_server\"\u003e\u003c/a\u003e [server](#module\\_server) | ./modules/server | n/a |\n| \u003ca name=\"module_ssh_key\"\u003e\u003c/a\u003e [ssh\\_key](#module\\_ssh\\_key) | ./modules/ssh-key | n/a |\n| \u003ca name=\"module_volume\"\u003e\u003c/a\u003e [volume](#module\\_volume) | ./modules/volume | n/a |\n\n## Resources\n\nNo resources.\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n| ---- | ----------- | ---- | ------- | :------: |\n| \u003ca name=\"input_name\"\u003e\u003c/a\u003e [name](#input\\_name) | Name of the server. | `string` | n/a | yes |\n| \u003ca name=\"input_backups\"\u003e\u003c/a\u003e [backups](#input\\_backups) | Enable backups. | `bool` | `false` | no |\n| \u003ca name=\"input_create_placement_group\"\u003e\u003c/a\u003e [create\\_placement\\_group](#input\\_create\\_placement\\_group) | Whether to create a placement group. | `bool` | `false` | no |\n| \u003ca name=\"input_create_server\"\u003e\u003c/a\u003e [create\\_server](#input\\_create\\_server) | Whether to create the server. | `bool` | `true` | no |\n| \u003ca name=\"input_create_ssh_key\"\u003e\u003c/a\u003e [create\\_ssh\\_key](#input\\_create\\_ssh\\_key) | Whether to create an SSH key. | `bool` | `false` | no |\n| \u003ca name=\"input_create_volume\"\u003e\u003c/a\u003e [create\\_volume](#input\\_create\\_volume) | Whether to create a volume. | `bool` | `false` | no |\n| \u003ca name=\"input_firewall_ids\"\u003e\u003c/a\u003e [firewall\\_ids](#input\\_firewall\\_ids) | Firewall IDs to attach. | `list(number)` | `[]` | no |\n| \u003ca name=\"input_image\"\u003e\u003c/a\u003e [image](#input\\_image) | Image to use. | `string` | `\"ubuntu-24.04\"` | no |\n| \u003ca name=\"input_labels\"\u003e\u003c/a\u003e [labels](#input\\_labels) | Labels to apply. | `map(string)` | `{}` | no |\n| \u003ca name=\"input_location\"\u003e\u003c/a\u003e [location](#input\\_location) | Location. | `string` | `\"fsn1\"` | no |\n| \u003ca name=\"input_networks\"\u003e\u003c/a\u003e [networks](#input\\_networks) | Networks to attach. | \u003cpre\u003elist(object({\u003cbr/\u003e    network_id = number\u003cbr/\u003e    ip         = optional(string)\u003cbr/\u003e    alias_ips  = optional(list(string), [])\u003cbr/\u003e  }))\u003c/pre\u003e | `[]` | no |\n| \u003ca name=\"input_placement_group_name\"\u003e\u003c/a\u003e [placement\\_group\\_name](#input\\_placement\\_group\\_name) | Name of the placement group. | `string` | `null` | no |\n| \u003ca name=\"input_placement_group_type\"\u003e\u003c/a\u003e [placement\\_group\\_type](#input\\_placement\\_group\\_type) | Type of the placement group. | `string` | `\"spread\"` | no |\n| \u003ca name=\"input_public_key\"\u003e\u003c/a\u003e [public\\_key](#input\\_public\\_key) | Public key content. | `string` | `\"\"` | no |\n| \u003ca name=\"input_server_type\"\u003e\u003c/a\u003e [server\\_type](#input\\_server\\_type) | Server type. | `string` | `\"cx22\"` | no |\n| \u003ca name=\"input_ssh_key_name\"\u003e\u003c/a\u003e [ssh\\_key\\_name](#input\\_ssh\\_key\\_name) | Name of the SSH key. | `string` | `null` | no |\n| \u003ca name=\"input_ssh_keys\"\u003e\u003c/a\u003e [ssh\\_keys](#input\\_ssh\\_keys) | SSH key IDs or names. | `list(string)` | `[]` | no |\n| \u003ca name=\"input_user_data\"\u003e\u003c/a\u003e [user\\_data](#input\\_user\\_data) | Cloud-init user data. | `string` | `null` | no |\n| \u003ca name=\"input_volume_automount\"\u003e\u003c/a\u003e [volume\\_automount](#input\\_volume\\_automount) | Automount the volume. | `bool` | `false` | no |\n| \u003ca name=\"input_volume_format\"\u003e\u003c/a\u003e [volume\\_format](#input\\_volume\\_format) | Format of the volume. | `string` | `null` | no |\n| \u003ca name=\"input_volume_name\"\u003e\u003c/a\u003e [volume\\_name](#input\\_volume\\_name) | Name of the volume. | `string` | `null` | no |\n| \u003ca name=\"input_volume_size\"\u003e\u003c/a\u003e [volume\\_size](#input\\_volume\\_size) | Size of the volume in GB. | `number` | `10` | no |\n\n## Outputs\n\n| Name | Description |\n| ---- | ----------- |\n| \u003ca name=\"output_ipv4_address\"\u003e\u003c/a\u003e [ipv4\\_address](#output\\_ipv4\\_address) | IPv4 address of the server. |\n| \u003ca name=\"output_ipv6_address\"\u003e\u003c/a\u003e [ipv6\\_address](#output\\_ipv6\\_address) | IPv6 address of the server. |\n| \u003ca name=\"output_placement_group\"\u003e\u003c/a\u003e [placement\\_group](#output\\_placement\\_group) | Placement group attributes. |\n| \u003ca name=\"output_placement_group_id\"\u003e\u003c/a\u003e [placement\\_group\\_id](#output\\_placement\\_group\\_id) | ID of the placement group. |\n| \u003ca name=\"output_server\"\u003e\u003c/a\u003e [server](#output\\_server) | Server attributes. |\n| \u003ca name=\"output_server_id\"\u003e\u003c/a\u003e [server\\_id](#output\\_server\\_id) | ID of the server. |\n| \u003ca name=\"output_server_name\"\u003e\u003c/a\u003e [server\\_name](#output\\_server\\_name) | Name of the server. |\n| \u003ca name=\"output_server_network_attachments\"\u003e\u003c/a\u003e [server\\_network\\_attachments](#output\\_server\\_network\\_attachments) | Map of server network attachments keyed by index. |\n| \u003ca name=\"output_server_rdns\"\u003e\u003c/a\u003e [server\\_rdns](#output\\_server\\_rdns) | Map of server reverse DNS entries keyed by index. |\n| \u003ca name=\"output_ssh_key\"\u003e\u003c/a\u003e [ssh\\_key](#output\\_ssh\\_key) | SSH key attributes. |\n| \u003ca name=\"output_ssh_key_fingerprint\"\u003e\u003c/a\u003e [ssh\\_key\\_fingerprint](#output\\_ssh\\_key\\_fingerprint) | Fingerprint of the SSH key. |\n| \u003ca name=\"output_ssh_key_id\"\u003e\u003c/a\u003e [ssh\\_key\\_id](#output\\_ssh\\_key\\_id) | ID of the SSH key. |\n| \u003ca name=\"output_volume\"\u003e\u003c/a\u003e [volume](#output\\_volume) | Volume attributes. |\n| \u003ca name=\"output_volume_id\"\u003e\u003c/a\u003e [volume\\_id](#output\\_volume\\_id) | ID of the volume. |\n| \u003ca name=\"output_volume_linux_device\"\u003e\u003c/a\u003e [volume\\_linux\\_device](#output\\_volume\\_linux\\_device) | Linux device path of the volume. |\n\u003c!-- END_TF_DOCS --\u003e\n\n## License\n\nMozilla Public License 2.0 - see [LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterraform-hc-modules%2Fterraform-hcloud-compute","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterraform-hc-modules%2Fterraform-hcloud-compute","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterraform-hc-modules%2Fterraform-hcloud-compute/lists"}