{"id":21901374,"url":"https://github.com/zoro16/terraform-hcloud-volume","last_synced_at":"2025-03-22T06:17:14.383Z","repository":{"id":196471458,"uuid":"696180369","full_name":"zoro16/terraform-hcloud-volume","owner":"zoro16","description":"Terraform module to provision Volume resouces in Hetzner Cloud","archived":false,"fork":false,"pushed_at":"2023-09-25T09:11:43.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T06:43:43.036Z","etag":null,"topics":["hcloud-volume","hetzner","hetzner-cloud","terraform-hcloud-volume","terraform-hetzner-cloud","terraform-modules"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/modules/zoro16/volume/hcloud/latest","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zoro16.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}},"created_at":"2023-09-25T08:49:48.000Z","updated_at":"2023-09-27T15:02:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"3b55715e-fd21-41c9-809c-454127a710af","html_url":"https://github.com/zoro16/terraform-hcloud-volume","commit_stats":null,"previous_names":["zoro16/terraform-hcloud-volume"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoro16%2Fterraform-hcloud-volume","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoro16%2Fterraform-hcloud-volume/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoro16%2Fterraform-hcloud-volume/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoro16%2Fterraform-hcloud-volume/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoro16","download_url":"https://codeload.github.com/zoro16/terraform-hcloud-volume/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244913331,"owners_count":20530818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["hcloud-volume","hetzner","hetzner-cloud","terraform-hcloud-volume","terraform-hetzner-cloud","terraform-modules"],"created_at":"2024-11-28T15:13:20.618Z","updated_at":"2025-03-22T06:17:14.358Z","avatar_url":"https://github.com/zoro16.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Description\n\nTerraform module to provision `Volume` and `Volume Attachment` resources in Hetzner Cloud.\n\n\n## Usage\n\n```hcl\n# Configure the Hetzner Cloud Provider\nprovider \"hcloud\" {\n  token = var.hcloud_token\n}\n\n\nmodule \"sv\" {\n  source  = \"zoro16/server/hcloud\"\n  version = \"1.0.0\"\n\n  create_server = true\n\n  server_name = \"sample-server\"\n  server_type = \"cax11\"\n  location    = \"fsn1\"\n  backups     = true\n  image       = \"debian-12\"\n\n  placement_group_name = \"placement-group-sample\"\n\n  public_net_ipv4_enabled = true\n  public_net_ipv6_enabled = true\n}\n\nmodule \"vol\" {\n  source = \"../../\"\n\n  create_volume    = true\n  volume_size      = 10\n  volume_name      = \"example-vol1\"\n  volume_automount = false\n  volume_format    = \"xfs\"\n  volume_server_id = module.sv.server_id\n  # volume_location = \"fsn1\"\n}\n```\n\n\n\u003c!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n## Requirements\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"requirement_terraform\"\u003e\u003c/a\u003e [terraform](#requirement\\_terraform) | \u003e= 1.2.0 |\n| \u003ca name=\"requirement_hcloud\"\u003e\u003c/a\u003e [hcloud](#requirement\\_hcloud) | \u003e= 1.42.1 |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_hcloud\"\u003e\u003c/a\u003e [hcloud](#provider\\_hcloud) | \u003e= 1.42.1 |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [hcloud_volume.vol](https://registry.terraform.io/providers/hetznercloud/hcloud/latest/docs/resources/volume) | resource |\n| [hcloud_volume_attachment.vol_attach](https://registry.terraform.io/providers/hetznercloud/hcloud/latest/docs/resources/volume_attachment) | resource |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_create_volume\"\u003e\u003c/a\u003e [create\\_volume](#input\\_create\\_volume) | A boolean to check whether to create a Volume or not. | `bool` | `false` | no |\n| \u003ca name=\"input_create_volume_attachment\"\u003e\u003c/a\u003e [create\\_volume\\_attachment](#input\\_create\\_volume\\_attachment) | A boolean to check whether to create a Volume Attachment or not. | `bool` | `false` | no |\n| \u003ca name=\"input_volume_attachment_automount\"\u003e\u003c/a\u003e [volume\\_attachment\\_automount](#input\\_volume\\_attachment\\_automount) | Automount the volume upon attaching it. | `bool` | `false` | no |\n| \u003ca name=\"input_volume_attachment_server_id\"\u003e\u003c/a\u003e [volume\\_attachment\\_server\\_id](#input\\_volume\\_attachment\\_server\\_id) | Server to attach the Volume to. | `number` | `null` | no |\n| \u003ca name=\"input_volume_attachment_volume_id\"\u003e\u003c/a\u003e [volume\\_attachment\\_volume\\_id](#input\\_volume\\_attachment\\_volume\\_id) | ID of the Volume. | `number` | `null` | no |\n| \u003ca name=\"input_volume_automount\"\u003e\u003c/a\u003e [volume\\_automount](#input\\_volume\\_automount) | Automount the volume upon attaching it (server\\_id must be provided). | `bool` | `true` | no |\n| \u003ca name=\"input_volume_delete_protection\"\u003e\u003c/a\u003e [volume\\_delete\\_protection](#input\\_volume\\_delete\\_protection) | Enable or disable delete protection. | `bool` | `false` | no |\n| \u003ca name=\"input_volume_format\"\u003e\u003c/a\u003e [volume\\_format](#input\\_volume\\_format) | Format volume after creation. `xfs` or `ext4` | `string` | `\"xfs\"` | no |\n| \u003ca name=\"input_volume_location\"\u003e\u003c/a\u003e [volume\\_location](#input\\_volume\\_location) | The location name of the volume to create, not allowed if `server_id` argument is passed. | `string` | `null` | no |\n| \u003ca name=\"input_volume_name\"\u003e\u003c/a\u003e [volume\\_name](#input\\_volume\\_name) | Name of the Volume to be created. | `string` | `\"\"` | no |\n| \u003ca name=\"input_volume_server_id\"\u003e\u003c/a\u003e [volume\\_server\\_id](#input\\_volume\\_server\\_id) | Server to attach the Volume to, not allowed if location argument is passed. | `number` | `null` | no |\n| \u003ca name=\"input_volume_size\"\u003e\u003c/a\u003e [volume\\_size](#input\\_volume\\_size) | Size of the Volume to be created in GB. | `number` | `10` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_volume_attachment_id\"\u003e\u003c/a\u003e [volume\\_attachment\\_id](#output\\_volume\\_attachment\\_id) | Unique ID of the Volume Attachment. |\n| \u003ca name=\"output_volume_attachment_server_id\"\u003e\u003c/a\u003e [volume\\_attachment\\_server\\_id](#output\\_volume\\_attachment\\_server\\_id) | Server to attach the Volume to. |\n| \u003ca name=\"output_volume_attachment_volume_id\"\u003e\u003c/a\u003e [volume\\_attachment\\_volume\\_id](#output\\_volume\\_attachment\\_volume\\_id) | ID of the Volume. |\n| \u003ca name=\"output_volume_delete_protection\"\u003e\u003c/a\u003e [volume\\_delete\\_protection](#output\\_volume\\_delete\\_protection) | Enable or disable delete protection. |\n| \u003ca name=\"output_volume_format\"\u003e\u003c/a\u003e [volume\\_format](#output\\_volume\\_format) | Format volume after creation. `xfs` or `ext4`. |\n| \u003ca name=\"output_volume_id\"\u003e\u003c/a\u003e [volume\\_id](#output\\_volume\\_id) | Unique ID of the volume. |\n| \u003ca name=\"output_volume_labels\"\u003e\u003c/a\u003e [volume\\_labels](#output\\_volume\\_labels) | User-defined labels (key-value pairs). |\n| \u003ca name=\"output_volume_linux_device\"\u003e\u003c/a\u003e [volume\\_linux\\_device](#output\\_volume\\_linux\\_device) | Device path on the file system for the Volume. |\n| \u003ca name=\"output_volume_location\"\u003e\u003c/a\u003e [volume\\_location](#output\\_volume\\_location) | The location name of the volume to create, not allowed if `server_id` argument is passed. |\n| \u003ca name=\"output_volume_name\"\u003e\u003c/a\u003e [volume\\_name](#output\\_volume\\_name) | Name of the Volume to be created. |\n| \u003ca name=\"output_volume_server_id\"\u003e\u003c/a\u003e [volume\\_server\\_id](#output\\_volume\\_server\\_id) | Server to attach the Volume to, not allowed if location argument is passed. |\n| \u003ca name=\"output_volume_size\"\u003e\u003c/a\u003e [volume\\_size](#output\\_volume\\_size) | Size of the Volume to be created in GB. |\n\u003c!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoro16%2Fterraform-hcloud-volume","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoro16%2Fterraform-hcloud-volume","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoro16%2Fterraform-hcloud-volume/lists"}