{"id":24275517,"url":"https://github.com/lucashfreitas/aws-parameter-dotenv","last_synced_at":"2025-09-24T18:30:53.988Z","repository":{"id":42482892,"uuid":"450471573","full_name":"lucashfreitas/aws-parameter-dotenv","owner":"lucashfreitas","description":"Tiny Library to load environment variables directly from AWS System parameter store.","archived":false,"fork":false,"pushed_at":"2023-01-07T19:19:15.000Z","size":232,"stargazers_count":3,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-06T20:15:31.500Z","etag":null,"topics":["aws","dot-env","parameter-store"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/lucashfreitas.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-01-21T11:51:52.000Z","updated_at":"2023-03-08T23:28:00.000Z","dependencies_parsed_at":"2023-02-07T22:31:58.453Z","dependency_job_id":null,"html_url":"https://github.com/lucashfreitas/aws-parameter-dotenv","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/lucashfreitas%2Faws-parameter-dotenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucashfreitas%2Faws-parameter-dotenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucashfreitas%2Faws-parameter-dotenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucashfreitas%2Faws-parameter-dotenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucashfreitas","download_url":"https://codeload.github.com/lucashfreitas/aws-parameter-dotenv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234105101,"owners_count":18780575,"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","dot-env","parameter-store"],"created_at":"2025-01-15T21:35:23.084Z","updated_at":"2025-09-24T18:30:53.651Z","avatar_url":"https://github.com/lucashfreitas.png","language":"TypeScript","readme":"# aws-parameter-dotenv\n\nTiny Library/wrapper around AWS System Parameter Store to load environment variables directly from AWS.\n\n# Use\n\n`yarn add aws-parameter-dotenv` or `npm i aws-parameter-dotenv`.\n\nThis library is very opinated on how to name/structure the parameter names following this\nstructure: `{projectName}/{environmentName}/{parameterName}`. The parameterName should be **camelCase**.\n\n- You can use the library to add parameters as follow:\n\n```typescript\nimport awsparamterdotenv from \"aws-parameter-dot-env\";\n\n/**\n * Add environment variables\n * */\n\nawait awsparamterdotenv({\n  project: \"projectName\",\n  environment: \"environment\",\n  region: \"us-east-1\",\n}).addParameter({\n  name: \"myParameter\",\n  value: \"myValue\",\n  secret: true, // should be stored as secure string\n});\n```\n\n- Or just load the parameters\n\n```typescript\nimport awsparamterdotenv from \"aws-parameter-dot-env\";\n\n/**\n * Load all the environment variables\n * */\n\nawait awsparamterdotenv({\n  project: \"projectName\",\n  environment: \"environment\",\n  region: \"us-east-1\",\n}).load();\n\nprocess.env.myParameter === \"myValue\"; // is TRUE\n```\n\n# Testing\n\n- `index.unit.spec.ts` contains the unit tests\n- `index.integration.spec.ts` contains the integration tests: It's required valid AWS Credentials accounts with IAM permission to execute operations on SMS. To run the integration tests rename the `.env.example` to `.env` and add your AWS Credentials.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucashfreitas%2Faws-parameter-dotenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucashfreitas%2Faws-parameter-dotenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucashfreitas%2Faws-parameter-dotenv/lists"}