{"id":36549147,"url":"https://github.com/oreo0725/ssm2dotenv","last_synced_at":"2026-01-12T06:30:21.187Z","repository":{"id":61164021,"uuid":"547923348","full_name":"oreo0725/ssm2dotenv","owner":"oreo0725","description":"Replace aws ssm parameter keys into values in the .env file","archived":false,"fork":false,"pushed_at":"2022-10-11T01:48:21.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T10:59:24.434Z","etag":null,"topics":["aws","aws-ssm","dotenv","golang","parameter-store","ssm"],"latest_commit_sha":null,"homepage":"","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/oreo0725.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}},"created_at":"2022-10-08T15:16:44.000Z","updated_at":"2022-10-11T01:47:23.000Z","dependencies_parsed_at":"2022-10-12T00:53:05.678Z","dependency_job_id":null,"html_url":"https://github.com/oreo0725/ssm2dotenv","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/oreo0725/ssm2dotenv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oreo0725%2Fssm2dotenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oreo0725%2Fssm2dotenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oreo0725%2Fssm2dotenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oreo0725%2Fssm2dotenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oreo0725","download_url":"https://codeload.github.com/oreo0725/ssm2dotenv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oreo0725%2Fssm2dotenv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28336316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["aws","aws-ssm","dotenv","golang","parameter-store","ssm"],"created_at":"2026-01-12T06:30:20.242Z","updated_at":"2026-01-12T06:30:21.180Z","avatar_url":"https://github.com/oreo0725.png","language":"Go","readme":"# ssm2dotenv\n\nInspired by [ssm-env](https://github.com/remind101/ssm-env). \n\nUsually, if you are using libraries like [godotenv](https://github.com/joho/godotenv) to load environment variables from a `.env` file, but you won't like to place the secrets in the `.env` file, you can use `ssm2dotenv` command to load the secrets from AWS SSM Parameter Store.\n\n## Usage\n\nSuppose that you have the following parameters in aws SSM:\n\n| key                  | value                       |\n|----------------------|-----------------------------|\n| /app-api/test/DB_DSN | postgres://xxx:yyyy/test_db |\n| /app-api/prod/DB_DSN | postgres://xxx:yyyy/prod_db |\n\nAnd you have the following `sample.env` template file:\n```dotenv\nENV=test\nDB_META_DSNS=ssm:///app-api/${env}/DB_DSN\nPORT=8080\n```\n\nThen, you can run the following command to get the env file\n\n```bash\n$ ssm2dotenv --env test -i ./sample.env -o ./.env\n```\n\nSo you can get the env file including secrets just only existing during the local development or your CI/CD pipeline. \n\n```dotenv\nENV=test\nDB_META_DSNS=postgres://xxx:yyyy/test_db\nPORT=8080\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foreo0725%2Fssm2dotenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foreo0725%2Fssm2dotenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foreo0725%2Fssm2dotenv/lists"}