{"id":24344351,"url":"https://github.com/aiven/terraform-provider-aiven","last_synced_at":"2026-05-19T17:02:20.960Z","repository":{"id":37431010,"uuid":"82976691","full_name":"aiven/terraform-provider-aiven","owner":"aiven","description":"Aiven Terraform Provider","archived":false,"fork":false,"pushed_at":"2025-04-11T08:14:54.000Z","size":34568,"stargazers_count":127,"open_issues_count":21,"forks_count":72,"subscribers_count":65,"default_branch":"main","last_synced_at":"2025-04-11T10:35:32.244Z","etag":null,"topics":["aiven","automation","terraform","terraform-provider"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/providers/aiven/aiven/latest/docs","language":"Go","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/aiven.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-23T22:13:59.000Z","updated_at":"2025-04-09T12:59:58.000Z","dependencies_parsed_at":"2023-10-16T18:21:11.266Z","dependency_job_id":"4ee263c9-62ee-4cfd-8df1-75fb22cd781a","html_url":"https://github.com/aiven/terraform-provider-aiven","commit_stats":null,"previous_names":["aiven-open/terraform-provider-aiven","aiven/terraform-provider-aiven"],"tags_count":178,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiven%2Fterraform-provider-aiven","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiven%2Fterraform-provider-aiven/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiven%2Fterraform-provider-aiven/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiven%2Fterraform-provider-aiven/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aiven","download_url":"https://codeload.github.com/aiven/terraform-provider-aiven/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248578874,"owners_count":21127714,"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":["aiven","automation","terraform","terraform-provider"],"created_at":"2025-01-18T09:34:07.738Z","updated_at":"2026-05-19T17:02:10.936Z","avatar_url":"https://github.com/aiven.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Aiven Terraform Provider\n\nThe Terraform provider for [Aiven.io](https://aiven.io/), an open source data platform as a service.\n\n**See the [official documentation](https://registry.terraform.io/providers/aiven/aiven/latest/docs) to learn about all the possible services and resources.**\n\n## Quick start\n\n- [Signup for Aiven](https://console.aiven.io/signup?utm_source=github\u0026utm_medium=organic\u0026utm_campaign=terraform\u0026utm_content=signup)\n- [Create your authentication token](https://aiven.io/docs/platform/howto/create_authentication_token)\n- Create a file named `main.tf` with the content below:\n\n```hcl\nterraform {\n  required_providers {\n    aiven = {\n      source  = \"aiven/aiven\"\n      version = \"x.y.z\" # check out the latest version in the release section\n    }\n  }\n}\n\nprovider \"aiven\" {\n  api_token = \"your-api-token\"\n}\n\nresource \"aiven_pg\" \"postgresql\" {\n  project                = \"your-project-name\"\n  service_name           = \"postgresql\"\n  cloud_name             = \"google-europe-west3\"\n  plan                   = \"startup-4\"\n\n  termination_protection = true\n}\n\noutput \"postgresql_service_uri\" {\n  value     = aiven_pg.postgresql.service_uri\n  sensitive = true\n}\n```\n\n- Run these commands in your terminal:\n\n```bash\nterraform init\nterraform plan\nterraform apply\npsql \"$(terraform output -raw postgresql_service_uri)\"\n```\n\nVoilà, a PostgreSQL database.\n\n## A word of caution\n\nRecreating stateful services with Terraform will possibly **delete** the service and all its data before creating it again. Whenever the Terraform plan indicates that a service will be **deleted** or **replaced**, a catastrophic action is possibly about to happen.\n\nSome properties, like **project** and the **resource name**, cannot be changed and it will trigger a resource replacement.\n\nTo avoid any issues, **please set the `termination_protection` property to `true` on all production services**, it will prevent Terraform to remove the service until the flag is set back to `false` again. While it prevents a service to be deleted, any logical databases, topics or other configurations may be removed **even when this section is enabled**. Be very careful!\n\n## Contributing\n\nBug reports and patches are very welcome, please post them as GitHub issues and pull requests at https://github.com/aiven/terraform-provider-aiven. Please review the guides below.\n\n- [Contributing guidelines](CONTRIBUTING.md)\n- [Code of conduct](CODE_OF_CONDUCT.md)\n\nPlease see our [security](SECURITY.md) policy to report any possible vulnerabilities or serious issues.\n\n## License\n\nterraform-provider-aiven is licensed under the MIT license. Full license text is available in the [LICENSE](LICENSE) file. Please note that the project explicitly does not require a CLA (Contributor License Agreement) from its contributors.\n\n## Credits\n\nThe original version of the Aiven Terraform provider was written and maintained by [Jelmer Snoeck](https://github.com/jelmersnoeck).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faiven%2Fterraform-provider-aiven","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faiven%2Fterraform-provider-aiven","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faiven%2Fterraform-provider-aiven/lists"}