{"id":22901754,"url":"https://github.com/eguven/secrets2env","last_synced_at":"2025-07-16T08:39:00.196Z","repository":{"id":31957952,"uuid":"130999012","full_name":"eguven/secrets2env","owner":"eguven","description":"Command-line tool for generating environment variables from AWS Secrets","archived":false,"fork":false,"pushed_at":"2021-08-28T10:00:34.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-08T02:07:54.645Z","etag":null,"topics":["aws","aws-secret","env","environment","environment-variables","secret","secrets-to-env"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/eguven.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":"2018-04-25T11:53:28.000Z","updated_at":"2021-09-23T15:16:33.000Z","dependencies_parsed_at":"2022-09-17T18:11:46.228Z","dependency_job_id":null,"html_url":"https://github.com/eguven/secrets2env","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/eguven/secrets2env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eguven%2Fsecrets2env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eguven%2Fsecrets2env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eguven%2Fsecrets2env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eguven%2Fsecrets2env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eguven","download_url":"https://codeload.github.com/eguven/secrets2env/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eguven%2Fsecrets2env/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265497947,"owners_count":23777092,"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":["aws","aws-secret","env","environment","environment-variables","secret","secrets-to-env"],"created_at":"2024-12-14T01:40:47.066Z","updated_at":"2025-07-16T08:39:00.147Z","avatar_url":"https://github.com/eguven.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/eguven/secrets2env.svg?branch=master)](https://travis-ci.org/eguven/secrets2env)\n\n# secret2env\n\nCommand-line tool for generating sourcable environment variables from secrets in AWS Secrets Manager\nusing a YAML definition.\n\n## Installation\n\n```shell\n$ pip install secrets2env\n```\n\n## Environment Definition\n\nBelow is an example environment definition. The values for environment variables will be generated\nusing `.format()` and keyword arguments.\n\n```yaml\n- secret: aws/secret-name\n  name: ENV_SECRET\n  value: \"{key1-in-secret}\"\n- secret: production/postgresql\n  name: PSQL_URI\n  value: \"postgresql://{username}:{password}@postgresql:5432/{dbname}\"\n```\n\n## Usage\n\nPath to a definition like the one can be provided as argument, otherwise it defaults to `./aws-secrets.yml`.\nRunning `secrets2env` will print a sourceable environment to STDOUT which can be `eval`d or redirected to an environment file.\n\n```shell\n# with path to definition file\n$ secrets2env --definition path/to/definition.yml\n# or using the default path (./aws-secrets.yml) with the definition above\n$ secrets2env\n```\n\nIt will result in the following output\n\n```shell\n# Autogenerated by \u003cpath/to/installed/secrets2env.py\u003e\nexport ENV_SECRET='some-secret'\nexport PSQL_URI='postgresql://pg-user:pg-pw@postgresql:5432/pgdb'\n```\n\n```shell\n# you can eval directly\neval \"`secrets2env`\"\n# or redirect to file\necho -e \"\\n`secrets2env`\" \u003e\u003e env.sh\n```\n\n## Limitations / TODOs\n\n* currently only supports `SecretString`\n* currently only supports OsX and Linux\n* no automated tests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feguven%2Fsecrets2env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feguven%2Fsecrets2env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feguven%2Fsecrets2env/lists"}