{"id":13505757,"url":"https://github.com/hetznercloud/terraform-provider-hcloud","last_synced_at":"2025-05-14T23:01:57.841Z","repository":{"id":37732984,"uuid":"136213126","full_name":"hetznercloud/terraform-provider-hcloud","owner":"hetznercloud","description":"Terraform Hetzner Cloud provider","archived":false,"fork":false,"pushed_at":"2025-05-02T09:34:11.000Z","size":36456,"stargazers_count":572,"open_issues_count":40,"forks_count":80,"subscribers_count":18,"default_branch":"main","last_synced_at":"2025-05-02T10:39:57.401Z","etag":null,"topics":["hetzner-cloud","terraform","terraform-provider"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/providers/hetznercloud/hcloud/latest","language":"Go","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/hetznercloud.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-06-05T17:38:35.000Z","updated_at":"2025-05-02T09:33:24.000Z","dependencies_parsed_at":"2023-02-19T08:45:52.033Z","dependency_job_id":"588c1578-3d5b-495f-82f9-88087b90e694","html_url":"https://github.com/hetznercloud/terraform-provider-hcloud","commit_stats":null,"previous_names":[],"tags_count":83,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hetznercloud%2Fterraform-provider-hcloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hetznercloud%2Fterraform-provider-hcloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hetznercloud%2Fterraform-provider-hcloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hetznercloud%2Fterraform-provider-hcloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hetznercloud","download_url":"https://codeload.github.com/hetznercloud/terraform-provider-hcloud/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254243353,"owners_count":22038044,"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":["hetzner-cloud","terraform","terraform-provider"],"created_at":"2024-08-01T00:01:13.024Z","updated_at":"2025-05-14T23:01:57.735Z","avatar_url":"https://github.com/hetznercloud.png","language":"Go","funding_links":[],"categories":["Go","Providers","terraform","Integrations"],"sub_categories":["Vendor supported providers","Rust"],"readme":"# Terraform Provider for the Hetzner Cloud\n\n[![GitHub release](https://img.shields.io/github/tag/hetznercloud/terraform-provider-hcloud.svg?label=release)](https://github.com/hetznercloud/terraform-provider-hcloud/releases/latest) [![Actions Status](https://github.com/hetznercloud/terraform-provider-hcloud/workflows/test/badge.svg)](https://github.com/hetznercloud/terraform-provider-hcloud/actions)[![Actions Status](https://github.com/hetznercloud/terraform-provider-hcloud/workflows/release/badge.svg)](https://github.com/hetznercloud/terraform-provider-hcloud/actions)\n[![Codecov](https://codecov.io/gh/hetznercloud/terraform-provider-hcloud/graph/badge.svg?token=og7OhpoV5W)](https://codecov.io/gh/hetznercloud/terraform-provider-hcloud/tree/main)\n\n- Documentation: https://registry.terraform.io/providers/hetznercloud/hcloud/latest/docs\n\n## Requirements\n\n- [Terraform](https://developer.hashicorp.com/terraform/install) or [OpenTofu](https://opentofu.org/docs/intro/install/)\n  - Our provider tests run with Terraform or OpenTofu releases that are supported upstream.\n  - Our provider should work with any tool that supports the [terraform plugin protocol version 6](https://developer.hashicorp.com/terraform/plugin/terraform-plugin-protocol#protocol-version-6).\n- [Go](https://go.dev/doc/install) 1.21.x (to build the provider plugin)\n\n## API Stability\n\nThis Go module implements a Terraform Provider for Hetzner Cloud\nServices. We thus guarantee backwards compatibility only for use through\nTerraform HCL. The actual _Go code_ in this repository _may change\nwithout a major version increase_.\n\nCurrently the code is mostly located in the `hcloud` package. In the\nlong term we want to move most of the `hcloud` package into individual\nsub-packages located in the `internal` directory. The goal is a\nstructure similar to HashiCorp's [Terraform Provider\nScaffolding](https://github.com/hashicorp/terraform-provider-scaffolding)\n\n## Using the provider\n\nIf you are building the provider, follow the instructions to [install it as a plugin](https://www.terraform.io/docs/plugins/basics.html#installing-a-plugin). After placing it into your plugins directory, run `terraform init` to initialize it.\n\n## Building the provider\n\nClone repository to: `$GOPATH/src/github.com/hetznercloud/terraform-provider-hcloud`\n\n```sh\n$ mkdir -p $GOPATH/src/github.com/hetznercloud; cd $GOPATH/src/github.com/hetznercloud\n$ git clone https://github.com/hetznercloud/terraform-provider-hcloud.git\n```\n\nEnter the provider directory and build the provider\n\n```sh\n$ cd $GOPATH/src/github.com/hetznercloud/terraform-provider-hcloud\n$ make build\n```\n\n## Developing the provider\n\nIf you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.14+ is _required_). You'll also need to correctly setup a [GOPATH](http://golang.org/doc/code.html#GOPATH), as well as adding `$GOPATH/bin` to your `$PATH`.\n\nTo compile the provider, run `make build`. This will build the provider and put the provider binary in the `$GOPATH/bin` directory.\n\n```sh\n$ make build\n...\n$ ./bin/terraform-provider-hcloud\n...\n```\n\nIn order to test the provider, you can simply run `make test`.\n\n```sh\n$ make test\n```\n\nIn order to run the full suite of Acceptance tests run `make testacc`.\n\n_Note:_ Acceptance tests create real resources, and often cost money to run.\n\n```\n$ make testacc\n```\n\nYou may save your acceptance tests environment variables in the `.env` file, for example:\n\n```sh\n$ cat .env\nHCLOUD_TOKEN=YOUR_API_TEST_TOKEN\n#TF_ACC=1\nTF_LOG=DEBUG\nTF_LOG_PATH_MASK=test-%s.log\n\n$ go test -v -timeout=30m -parallel=8 ./internal/server\n=== RUN   TestAccHcloudDataSourceServerTest\n# ...\n```\n\n## Running a local build\n\nChoose a terraform cli config file path:\n\n```sh\nexport TF_CLI_CONFIG_FILE=\"terraform.tfrc\"\n```\n\nIn the terraform cli config file, override the lookup path for the `hetznercloud/hcloud` provider to use the local build:\n\n```sh\ncat \u003c\u003cEOF \u003e\"$TF_CLI_CONFIG_FILE\"\nprovider_installation {\n  dev_overrides {\n    \"hetznercloud/hcloud\" = \"$PWD\"\n  }\n\n  direct {}\n}\nEOF\n```\n\nBuild the provider, resulting in a `terraform-provider-hcloud` binary:\n\n```sh\nmake build\n```\n\nFinally, run your terraform plan to see if it works:\n\n```sh\ntofu plan\n```\n\nYou should see the following warning:\n\n```\n╷\n│ Warning: Provider development overrides are in effect\n│\n│ The following provider development overrides are set in the CLI configuration:\n│  - hetznercloud/hcloud in /home/user/code/github.com/hetznercloud/terraform-provider-hcloud\n│\n│ The behavior may therefore not match any released version of the provider and applying changes may cause the state to become incompatible with published releases.\n╵\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhetznercloud%2Fterraform-provider-hcloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhetznercloud%2Fterraform-provider-hcloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhetznercloud%2Fterraform-provider-hcloud/lists"}