{"id":19785854,"url":"https://github.com/razorsedge/terraform-credentials-op","last_synced_at":"2026-04-17T19:32:25.537Z","repository":{"id":238371821,"uuid":"709329181","full_name":"razorsedge/terraform-credentials-op","owner":"razorsedge","description":"Terraform credentials helper for storing credentials in 1Password","archived":false,"fork":false,"pushed_at":"2024-05-05T20:26:37.000Z","size":7,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T13:34:25.880Z","etag":null,"topics":["1password","1password-cli","terraform"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/razorsedge.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":"2023-10-24T13:54:26.000Z","updated_at":"2024-05-05T20:35:24.000Z","dependencies_parsed_at":"2024-05-05T22:41:12.987Z","dependency_job_id":null,"html_url":"https://github.com/razorsedge/terraform-credentials-op","commit_stats":null,"previous_names":["razorsedge/terraform-credentials-op"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/razorsedge/terraform-credentials-op","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razorsedge%2Fterraform-credentials-op","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razorsedge%2Fterraform-credentials-op/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razorsedge%2Fterraform-credentials-op/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razorsedge%2Fterraform-credentials-op/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/razorsedge","download_url":"https://codeload.github.com/razorsedge/terraform-credentials-op/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razorsedge%2Fterraform-credentials-op/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31943348,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"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":["1password","1password-cli","terraform"],"created_at":"2024-11-12T06:15:54.715Z","updated_at":"2026-04-17T19:32:25.520Z","avatar_url":"https://github.com/razorsedge.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-credentials-op\nA [Terraform credentials helper](https://developer.hashicorp.com/terraform/internals/credentials-helpers) for [1Password](https://1password.com/).\n\n\u003e Credentials helpers offer an alternative approach that allows you to customize how Terraform obtains credentials using an external program, which can then directly access an existing secrets management system in your organization.\n\n## Installation:\n\n1. Requires [jq](https://jqlang.github.io/jq/) to be installed.\n2. Requires [1Password CLI](https://developer.1password.com/docs/cli/get-started/) to be installed and logged in to your account.\n```\nop signin\n```\n\n3. Download the `terraform-credentials-op` file from this repository, and copy it to your global plugins path `~/.terraform.d/plugins`.\n```\n# Run the following in a Bourne compatible shell (Linux and MacOS):\nmkdir -p ~/.terraform.d/plugins/ \u0026\u0026 \\\nwget https://raw.githubusercontent.com/razorsedge/terraform-credentials-op/main/terraform-credentials-op \\\n -O ~/.terraform.d/plugins/terraform-credentials-op \u0026\u0026 \\\nchmod +x ~/.terraform.d/plugins/terraform-credentials-op\n```\n4. Edit [your Terraform CLI configuration](https://www.terraform.io/docs/commands/cli-config.html) to enable the helper:\n```\n# Run the following in a Bourne compatible shell (Linux and MacOS):\necho \"credentials_helper \"op\" {}\" \u003e\u003e~/.terraformrc\n```\n\n## Usage:\n\n1. Use [`terraform login`](https://www.terraform.io/docs/commands/login.html) to create a Terraform Cloud token and store it in your keychain.\n\n```\n$ terraform login\nTerraform will request an API token for app.terraform.io using your browser.\n\nIf login is successful, Terraform will store the token in the configured\n\"op\" credentials helper for use by subsequent commands.\n\nDo you want to proceed?\n  Only 'yes' will be accepted to confirm.\n\n  Enter a value: yes\n\n\n---------------------------------------------------------------------------------\n\nTerraform must now open a web browser to the tokens page for app.terraform.io.\n\nIf a browser does not open this automatically, open the following URL to proceed:\n    https://app.terraform.io/app/settings/tokens?source=terraform-login\n\n\n---------------------------------------------------------------------------------\n\nGenerate a token using your browser, and copy-paste it into this prompt.\n\nTerraform will store the token in the configured \"op\" credentials helper\nfor use by subsequent commands.\n\nToken for app.terraform.io:\n  Enter a value:\n\n\nRetrieved token for user xxxxxx\n\n\n---------------------------------------------------------------------------------\n\n                                          -\n                                          -----                           -\n                                          ---------                      --\n                                          ---------  -                -----\n                                           ---------  ------        -------\n                                             -------  ---------  ----------\n                                                ----  ---------- ----------\n                                                  --  ---------- ----------\n   Welcome to Terraform Cloud!                     -  ---------- -------\n                                                      ---  ----- ---\n   Documentation: terraform.io/docs/cloud             --------   -\n                                                      ----------\n                                                      ----------\n                                                       ---------\n                                                           -----\n                                                               -\n\n\n   New to TFC? Follow these steps to instantly apply an example configuration:\n\n   $ git clone https://github.com/hashicorp/tfc-getting-started.git\n   $ cd tfc-getting-started\n   $ scripts/setup.sh\n\n```\n2. You can remove the stored token with [`terraform logout`](https://www.terraform.io/docs/commands/logout.html).\n```\n$ terraform logout\nRemoving the stored credentials for app.terraform.io from the configured\n\"op\" credentials helper.\n\nSuccess! Terraform has removed the stored API token for app.terraform.io.\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frazorsedge%2Fterraform-credentials-op","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frazorsedge%2Fterraform-credentials-op","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frazorsedge%2Fterraform-credentials-op/lists"}