{"id":19693867,"url":"https://github.com/aiven-open/terraform-mgmt-sample","last_synced_at":"2026-05-06T13:16:05.880Z","repository":{"id":44644373,"uuid":"366031573","full_name":"Aiven-Open/terraform-mgmt-sample","owner":"Aiven-Open","description":"Code sample for managing multiple Aiven services with Terraform","archived":false,"fork":false,"pushed_at":"2022-02-02T14:06:39.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-01-10T09:15:36.031Z","etag":null,"topics":["aiven","automation","grafana","influxdb","postgresql","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aiven-Open.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-10T12:15:56.000Z","updated_at":"2023-08-09T13:42:56.000Z","dependencies_parsed_at":"2022-09-13T15:12:34.510Z","dependency_job_id":null,"html_url":"https://github.com/Aiven-Open/terraform-mgmt-sample","commit_stats":null,"previous_names":["aiven-open/terraform-mgmt-sample"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aiven-Open%2Fterraform-mgmt-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aiven-Open%2Fterraform-mgmt-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aiven-Open%2Fterraform-mgmt-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aiven-Open%2Fterraform-mgmt-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aiven-Open","download_url":"https://codeload.github.com/Aiven-Open/terraform-mgmt-sample/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241002100,"owners_count":19892109,"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","grafana","influxdb","postgresql","terraform"],"created_at":"2024-11-11T19:18:30.933Z","updated_at":"2026-05-06T13:16:00.838Z","avatar_url":"https://github.com/Aiven-Open.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Managing your Aiven infrastructure with Terraform\nThis code sample sets up an open source data infrastructure on the Aiven platform using Terraform, consisting of a PostgreSQL® instance sending metrics to InfluxDB®, which can be visualized with Grafana®.\n\nRead more about this setup on the [Managing your Aiven infrastructure with Terraform]() article.\n\nFor more information, check the [Aiven Terraform Provider](https://aiven.github.io/terraform-provider-aiven/README) official documentation.\n\n## Prerequisites\n- [Terraform](https://learn.hashicorp.com/tutorials/terraform/install-cli), at least v0.13\n- [Aiven account](https://console.aiven.io/signup)\n\n## Running it\nPopulate the `terraform.tfvars` file with your Aiven access token and project name.\n\nTo create the infrastructure, run the following commands:\n```bash\n$ terraform plan\n$ terraform apply\n```\n\n## Connecting to PostgreSQL\nTo connect to the deployed PostgreSQL instance, run the following command:\n```bash\n$ psql \"$(terraform output -raw postgresql_service_uri)\"\n```\n\n## Visualizing metrics with Grafana\nRun the following command to find the Grafana URL, username and password:\n```bash\n$ terraform output -raw grafana_service_uri\n$ terraform output -raw grafana_service_username\n$ terraform output -raw grafana_service_password\n```\n\nOpen the Grafana URL in your web browser with the outputted username and password.\n\n## Clean up\nTo destroy the infrastructure, set the `termination_protection` flag under the PostgreSQL resource to `false` and run the command below:\n```\n$ terraform destroy\n```\n\n## Trademarks\n\nPostgres, PostgreSQL and the Slonik Logo are trademarks or registered trademarks of the PostgreSQL Community Association of Canada, and used with their permission.\n\nInfluxDB® is a trademark [registered / owned] by InfluxData, which is not affiliated with, and does not endorse, this product.\n\nTerraform and Grafana are trademarks and property of their respective owners. All product and service names used in this website are for identification purposes only and do not imply endorsement.\n\n## License\nThis project is licensed under the [Apache License, Version 2.0](https://github.com/aiven/aiven-kafka-connect-s3/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faiven-open%2Fterraform-mgmt-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faiven-open%2Fterraform-mgmt-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faiven-open%2Fterraform-mgmt-sample/lists"}