{"id":15350154,"url":"https://github.com/mars/terraform-pg-state-store","last_synced_at":"2026-02-13T05:03:09.907Z","repository":{"id":139298470,"uuid":"266213702","full_name":"mars/terraform-pg-state-store","owner":"mars","description":"Terraform pg state store using Heroku Postgres","archived":false,"fork":false,"pushed_at":"2020-05-22T22:24:23.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-06T15:44:14.630Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mars.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-22T21:46:09.000Z","updated_at":"2020-05-24T17:04:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"3b78ed35-9131-4781-954a-fc322e822deb","html_url":"https://github.com/mars/terraform-pg-state-store","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"12322f6effe550f781a6a55c7575bbe496498aee"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mars/terraform-pg-state-store","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mars%2Fterraform-pg-state-store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mars%2Fterraform-pg-state-store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mars%2Fterraform-pg-state-store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mars%2Fterraform-pg-state-store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mars","download_url":"https://codeload.github.com/mars/terraform-pg-state-store/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mars%2Fterraform-pg-state-store/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29396847,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T04:26:15.637Z","status":"ssl_error","status_checked_at":"2026-02-13T04:16:29.732Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-01T11:57:44.990Z","updated_at":"2026-02-13T05:03:09.874Z","avatar_url":"https://github.com/mars.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"Terraform pg state store using Heroku Postgres\n===========================\n\nSetup\n-----\n\nFirst, install \u0026 login to [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli).\n\n🆔 *Terraform will use Heroku CLI's authorization.*\n\n```bash\nheroku whoami\nheroku login\n```\n\n🔐 *Instead, optionally, [authorize Terraform with a specific API key](https://www.terraform.io/docs/providers/heroku/index.html#authentication)).*\n\nClone the repo:\n\n```bash\ngit clone git@github.com:mars/terraform-pg-state-store.git\ncd terraform-pg-state-store/\n```\n\nInitialize \u0026 apply the configuration with the required input variables:\n\n```bash\nterraform init\nterraform apply -var name=my-terraform-state\n```\n\nUsage\n-----\n\nOnce complete, get the Postgres credentials.\n\nAlways refresh first, to get the current credentials:\n\n```bash\nterraform refresh -var name=my-terraform-state\nterraform output pg_connection_string\n```\n\n…and then, use that value to [configure the pg backend in your Terraform project](https://www.terraform.io/docs/backends/types/pg.html).\n\nSafety\n------\n\nIf you want to ensure no further Terraform actions accidently destroy the database, go ahead and delete the Terraform state:\n\n```bash\nrm terraform.tfstate*\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmars%2Fterraform-pg-state-store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmars%2Fterraform-pg-state-store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmars%2Fterraform-pg-state-store/lists"}