{"id":16808878,"url":"https://github.com/timakin/ssm2env","last_synced_at":"2025-04-11T01:20:52.978Z","repository":{"id":57535591,"uuid":"98428161","full_name":"timakin/ssm2env","owner":"timakin","description":"Environments injection tool for AWS EC2, with SSM (EC2 Parameter Store).","archived":false,"fork":false,"pushed_at":"2017-08-26T14:16:33.000Z","size":16,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T22:17:25.634Z","etag":null,"topics":[],"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/timakin.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":"2017-07-26T13:51:01.000Z","updated_at":"2020-07-28T08:11:11.000Z","dependencies_parsed_at":"2022-08-29T00:30:22.678Z","dependency_job_id":null,"html_url":"https://github.com/timakin/ssm2env","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timakin%2Fssm2env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timakin%2Fssm2env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timakin%2Fssm2env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timakin%2Fssm2env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timakin","download_url":"https://codeload.github.com/timakin/ssm2env/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248323174,"owners_count":21084457,"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-13T10:00:15.112Z","updated_at":"2025-04-11T01:20:52.962Z","avatar_url":"https://github.com/timakin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ssm2env\nEnvironments injection tool with parameters fetched from AWS (Amazon System Manager EC2 Parameter Store).\n\n# Install\n\n```\n$ go get -u github.com/timakin/ssm2env\n```\n\n# Prepare\n\nAt first, set your own parameters to SSM, EC2 parameter store.\n\nNotice: Please set the prefix for parameters with dots. \n\nex) `testapi.prod.DB_PASSWORD`\n\n```\n$ aws ssm get-parameters --with-decryption --names testapi.prod.DB_USER testapi.prod.DB_PASSWORD\n{\n    \"InvalidParameters\": [],\n    \"Parameters\": [\n        {\n            \"Type\": \"String\",\n            \"Name\": \"testapi.prod.DB_USER\",\n            \"Value\": \"root\"\n        },\n        {\n            \"Type\": \"SecureString\",\n            \"Name\": \"testapi.prod.DB_PASSWORD\",\n            \"Value\": \"password\"\n        }\n    ]\n}\n```\n\n# Usage\n\nInside your server with aws credentials, just type `SSM2ENV_PREFIX=testapi.prod ssm2env [-v]` .\n\nThis command will generate the script to export the environments.\n\nAfter reproduction a process, init script will be called and it'll export above variables.\n\nIf you'd set envs immediately, just call the raw script file. `source /etc/profile.d/loadenv_fromssm.sh`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimakin%2Fssm2env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimakin%2Fssm2env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimakin%2Fssm2env/lists"}