{"id":15987957,"url":"https://github.com/chappio/terraform-encrypt","last_synced_at":"2025-09-12T18:31:55.396Z","repository":{"id":84820806,"uuid":"135250207","full_name":"ChappIO/terraform-encrypt","owner":"ChappIO","description":"A simple encrypt program to be used by terraform's external data provider","archived":false,"fork":false,"pushed_at":"2019-05-29T08:18:22.000Z","size":6,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-12-06T22:46:24.926Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChappIO.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-05-29T06:20:13.000Z","updated_at":"2023-02-26T01:54:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"4531180c-2215-4859-b80f-bf8c963cec3f","html_url":"https://github.com/ChappIO/terraform-encrypt","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChappIO%2Fterraform-encrypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChappIO%2Fterraform-encrypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChappIO%2Fterraform-encrypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChappIO%2Fterraform-encrypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChappIO","download_url":"https://codeload.github.com/ChappIO/terraform-encrypt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230582888,"owners_count":18248672,"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":[],"created_at":"2024-10-08T04:00:39.604Z","updated_at":"2025-01-06T19:15:01.656Z","avatar_url":"https://github.com/ChappIO.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-encrypt\n\nA simple encrypt program to be used by terraform's external data provider or as a CLI tool.\n\n## Usage\n\nThere are several commands which you can invoke on terraform-encrypt.\n\n### Command: encrypt\n\nTo encrypt a file in-place (or to another file) you run:\n\n```bash\nterraform-encrypt encrypt [sourceFiles...] [flags]\n```\n\nFlags:\n - `-o`, `--output string`:     The target file location. Can only be used if a single file is passed. Specify '-' to output to stdout.\n - `-p`, `--password string`:   The vault password. This defaults to the value of environment variable `VAULT_PASSWORD`.\n\n### Command: decrypt\n\nTo decrypt a file you run:\n\n```bash\nterraform-encrypt decrypt [sourceFiles...] [flags]\n```\n\nFlags:\n - `-c`, `--confirm-password`:  Confirm the vault password when prompting.\n - `-o`, `--output string`:     The target file location. Can only be used if a single file is passed. Specify '-' to output to stdout.\n - `-p`, `--password string`:   The vault password. This defaults to the value of environment variable `VAULT_PASSWORD`.\n\n### Using Terraform\n\nCreate a json file:\n\n```json\n{\n    \"fieldA\": \"Value\",\n    \"message\": \"I am super secret!\"\n}\n```\n\nEncrypt the file:\n\n```bash\nterraform-encrypt encrypt secret.json\n```\n\nRead using terraform:\n\n```hcl\ndata \"external\" \"secret\" {\n  program = [\n    \"terraform-encrypt\",\n    \"decrypt\",\n    \"${path.module}/path/to/encrypted/file\",\n    \"--output\",\n    \"-\"\n  ]\n}\n\noutput \"result\" {\n  value = \"${data.external.secret.result.message}\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchappio%2Fterraform-encrypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchappio%2Fterraform-encrypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchappio%2Fterraform-encrypt/lists"}