{"id":18600759,"url":"https://github.com/meltwater/terraform-credentials-env","last_synced_at":"2025-05-16T17:12:28.244Z","repository":{"id":145437215,"uuid":"475114148","full_name":"meltwater/terraform-credentials-env","owner":"meltwater","description":"Terraform credentials helper for supplying credentials in environment variables","archived":false,"fork":false,"pushed_at":"2025-05-02T11:59:56.000Z","size":29,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-05-16T17:12:26.590Z","etag":null,"topics":["automation-github-actions","clientdata-no","coe-universal-solutions","department-460","lifecycle-maintenance","purpose-library","team-a-team","team-foundation","terraform","usage-public"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"apparentlymart/terraform-credentials-env","license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/meltwater.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,"zenodo":null}},"created_at":"2022-03-28T17:43:54.000Z","updated_at":"2025-02-06T17:37:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"c793a899-0029-422b-9293-7ab617ded13a","html_url":"https://github.com/meltwater/terraform-credentials-env","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meltwater%2Fterraform-credentials-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meltwater%2Fterraform-credentials-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meltwater%2Fterraform-credentials-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meltwater%2Fterraform-credentials-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meltwater","download_url":"https://codeload.github.com/meltwater/terraform-credentials-env/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254573589,"owners_count":22093731,"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":["automation-github-actions","clientdata-no","coe-universal-solutions","department-460","lifecycle-maintenance","purpose-library","team-a-team","team-foundation","terraform","usage-public"],"created_at":"2024-11-07T02:05:17.514Z","updated_at":"2025-05-16T17:12:28.155Z","avatar_url":"https://github.com/meltwater.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Credentials from the Environment\n\n## Maintainers\n\nThis repository is owned and maintained by Foundation Missions A-Team.  Should you encounter issues or require changes to code maintained in this repository, please reachout in `#foundation-mission` or one of our service channels in slack.\n\n* [#foundation-mission](https://meltwater.slack.com/archives/CATUVU820)\n* [a-team@meltwater.com](mailto:a-team@meltwater.com)\n* @meltwater/a-team\n\n`terraform-credentials-env` is a Terraform \"credentials helper\" plugin that\nallows providing credentials for\n[Terraform-native services](https://www.terraform.io/docs/internals/remote-service-discovery.html)\n(private module registries, Terraform Cloud, etc) via environment variables.\n\nTo use it,\n[download a release archive](https://github.com/apparentlymart/terraform-credentials-env/releases)\nand extract it into the `~/.terraform.d/plugins` directory where Terraform\nlooks for credentials helper plugins. (The filename of the file inside the\narchive is important for Terraform to discover it correctly, so don't rename\nit.)\n\nTerraform will take the newest version of the plugin it finds in the plugin\nsearch directory, so if you are switching between versions you may prefer to\nremove existing installed versions in order to ensure Terraform selects the\ndesired version.\n\nOnce you've installed the plugin, enable it by adding the following block\nto your\n[Terraform CLI configuration](https://www.terraform.io/docs/commands/cli-config.html):\n\n```hcl\ncredentials_helper \"env\" {}\n```\n\nThis credentials helper plugin does not take any additional arguments, so the\nblock must be left empty as shown above.\n\nWith this helper installed and enabled, you can set credentials for specific\nhostnames in the environment for your shell so that they will be inherited\nby `terraform` and then in turn by `terraform-credentials-env`.\n\nThe environment variables must be named `TF_TOKEN_` followed by the hostname\nthe token is for with periods replaced by underscores. For example, to set\na token for `app.terraform.io` (Terraform Cloud) in bash:\n\n```\nexport TF_TOKEN_app_terraform_io=example_token\n```\n\nTerraform will execute the configured credentials helper plugin whenever it\nneeds to make a request to a Terraform-native service whose credentials aren't\ndirectly configured in the CLI configuration using `credentials` blocks.\n`credentials` blocks override credentials helpers though, so if you have any\nexisting `credentials` block for the hostname you wish to configure you will\nneed to remove that block first.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeltwater%2Fterraform-credentials-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeltwater%2Fterraform-credentials-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeltwater%2Fterraform-credentials-env/lists"}