{"id":17051974,"url":"https://github.com/sachaos/s3env","last_synced_at":"2025-04-12T16:25:53.454Z","repository":{"id":57590585,"uuid":"109615838","full_name":"sachaos/s3env","owner":"sachaos","description":"Load environment variables from AWS S3","archived":false,"fork":false,"pushed_at":"2023-02-14T15:08:06.000Z","size":19,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T00:08:44.911Z","etag":null,"topics":["aws","aws-s3","dotenv","environment-variables"],"latest_commit_sha":null,"homepage":"","language":"Go","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/sachaos.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}},"created_at":"2017-11-05T20:59:13.000Z","updated_at":"2023-08-15T19:15:27.000Z","dependencies_parsed_at":"2023-12-05T16:09:59.795Z","dependency_job_id":"9ceb2331-67ec-45a2-8d1c-6e837f31bafb","html_url":"https://github.com/sachaos/s3env","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachaos%2Fs3env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachaos%2Fs3env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachaos%2Fs3env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachaos%2Fs3env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sachaos","download_url":"https://codeload.github.com/sachaos/s3env/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248595437,"owners_count":21130522,"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-s3","dotenv","environment-variables"],"created_at":"2024-10-14T10:08:06.137Z","updated_at":"2025-04-12T16:25:53.431Z","avatar_url":"https://github.com/sachaos.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"s3env\n===\n\n## Description\n\nLoad environment variables from AWS S3.\n\n## Usage\n\n### Setup\n\n#### 1. Upload environment variable\n\nCreate a bucket and, put a dotenv format file.  \nOptionally, you can use base64 encoded file.\n\n```\n$ cat dotenv\n# This is a comment\nENABLE_DEBUG_MODE=y # comment\nENABLE_TEST_MODE=${ENABLE_DEBUG_MODE}\"\n\n$ cat dotenv | base64 | aws s3 cp - s3://your-bucket-name/dotenv # Upload to s3\n```\n\n#### 2. Set AWS credential and s3env environment variables\n\nSet below environment variables, and [aws credential environment variables](http://docs.aws.amazon.com/cli/latest/userguide/cli-environment.html).\n\n```\nS3ENV_BASE64ENCODE=y\nS3ENV_BUCKET_NAME=your-bucket-name\nS3ENV_KEY_NAME=dotenv\n```\n\n### Use environment variable from S3\n\n#### Load to current shell\n\n```\n$ source \u003c(s3env show --export)\n$ echo $ENABLE_DEBUG_MODE\ny\n```\n\n#### Run with some command\n\n```\n$ s3env run irb\nirb(main):001:0\u003e ENV[\"ENABLE_DEBUG_MODE\"]\n=\u003e \"y\"\n```\n\n## Inspired by\n\n* [the40san/dotenv-s3: load your dotenv from s3](https://github.com/the40san/dotenv-s3)\n* [timakin/ssm2env: Environments injection tool for AWS EC2, with SSM (EC2 Parameter Store).](https://github.com/timakin/ssm2env)\n* [okzk/env-injector](https://github.com/okzk/env-injector)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsachaos%2Fs3env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsachaos%2Fs3env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsachaos%2Fs3env/lists"}