{"_id":"@bazylhorsey/aws-dotenv","_rev":"2-ea931344be58777379731f78a2c3dd72","name":"@bazylhorsey/aws-dotenv","dist-tags":{"latest":"1.1.1"},"versions":{"1.1.0":{"name":"@bazylhorsey/aws-dotenv","version":"1.1.0","description":"Manage your dotenv variables with the help of AWS Secrets Manager","keywords":["aws","aws secrets manager","aws environment variables","secrets manager","environment variables","serverless secrets","serverless secrets manager","dotenv","env"],"author":{"name":"Bazyl Horsey"},"license":"MIT","main":"./lib/index.js","types":"./lib/index.d.ts","bin":{"aws-dotenv":"bin/aws-dotenv"},"engines":{"node":">=8.6.0"},"repository":{"type":"git","url":"git+https://github.com/Julez64/aws-dotenv.git"},"bugs":{"url":"https://github.com/Julez64/aws-dotenv/issues"},"homepage":"https://github.com/Julez64/aws-dotenv#readme","scripts":{"test":"npm run lint && jest","build":"del-cli lib && tsc","lint":"eslint . --ext .js,.ts --ignore-path .gitignore","fix":"npm run lint -- --fix"},"dependencies":{"aws-sdk":"^2.766.0","dotenv":"^8.2.0","rc":"^1.2.8"},"devDependencies":{"@types/jest":"^24.9.1","@types/node":"^12.12.62","@types/rc":"^1.1.0","@typescript-eslint/eslint-plugin":"^2.34.0","@typescript-eslint/parser":"^2.34.0","del":"^5.1.0","del-cli":"^3.0.1","eslint":"^6.8.0","eslint-config-prettier":"^6.12.0","eslint-config-xo-space":"^0.21.0","eslint-plugin-prettier":"^3.1.4","jest":"^25.5.4","prettier":"^1.19.1","ts-jest":"^26.4.1","typescript":"^3.9.7"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"licenseText":"Copyright 2021 Julien Ferluc\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@bazylhorsey/aws-dotenv@1.1.0","dist":{"shasum":"e6117dfccdc91e6f103ac90c099a4c477c01d72b","integrity":"sha512-gRag2ujAsheyJZgwpRWRYzoGIcTYdl4rDLxHG2l8i424r/AMMjVkpqDSymOCFzrpzASdLTyVHw5sAM8QdlXg5A==","tarball":"https://registry.npmjs.org/@bazylhorsey/aws-dotenv/-/aws-dotenv-1.1.0.tgz","fileCount":10,"unpackedSize":349001,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFAOvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo6JhAAlq4fLbt7htWXwzpeUPQDbM+JszaH1CgUw6b0HGiNG6JaRIvi\r\nhOjwBl77hBohFQ4HxrdGFww6p+J65fXihR2Hvsl5+q2ITX3cAIp/40lv0zMO\r\np9O21hb9hGzY1abMFR4SLxOoEQtAHWuJAqkjD4ZlkK1K+5TLKjUv5WtlXXeC\r\n2rPGq2D9yH+L9r0yxyDmbF5aR6a7v6gj8XawrGUpR+rnf924EABU0j57sO+n\r\nNuaxijoe8KvMYRrNlLbMu64Q+GpwZlObQJzeCGGTVuQfBibtbaoGoWveXRCZ\r\nzhZf4hx/zKp9fSlpcMkM/hNYY1vLS/jQuTOOcs6HDhA0nUMpCCfAYfvjFDJz\r\nk7xjAd2OF0KlKGT9UYwenV//zN2/gmZT8mexs9Vp86+oVCrEVD0TYxSQNK8I\r\ny1y0HuAZKjzR0kh2Os25504JctSMDSZp3JRVL7lrTPqwLOsUkMS/oAoQiBZv\r\nuFj+GLm1zb7Z8vZ/o568VOWnkeoh8A0gl1JmnYkgCsuZOWrAZwblFR+jWpGP\r\n79SsIq9CSq5OxoXGzDFA+iZFRnwXA0t8GOvVMU5lPLat/k88NC6PnpmwDFOF\r\nxuc5nRJPuMeCeBPU5uaafynq4WHS0jesPEtW1iwZVsu1rX9HO3JNZxkFNUtF\r\nvQDWBsMp8V7uPtXOhJvOcnJQJeilOyH8f7M=\r\n=hg1O\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSHhk74Wyla85Hg6doRd3vne72Rl+pmrtQVD1LXxlcfAIgYhFc4KpC5jEr8u5AlUAJUm04svEzEJYn2LkEvcW5GTs="}]},"_npmUser":{"name":"bazylhorsey","email":"bazyl@koloni.me"},"directories":{},"maintainers":[{"name":"bazylhorsey","email":"bazyl@koloni.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aws-dotenv_1.1.0_1645478831249_0.8622256660426502"},"_hasShrinkwrap":false},"1.1.1":{"name":"@bazylhorsey/aws-dotenv","version":"1.1.1","description":"Manage your dotenv variables with the help of AWS Secrets Manager","keywords":["aws","aws secrets manager","aws environment variables","secrets manager","environment variables","serverless secrets","serverless secrets manager","dotenv","env"],"author":{"name":"Bazyl Horsey"},"license":"MIT","main":"./lib/index.js","types":"./lib/index.d.ts","bin":{"aws-dotenv":"bin/aws-dotenv"},"engines":{"node":">=8.6.0"},"repository":{"type":"git","url":"git+https://github.com/Julez64/aws-dotenv.git"},"bugs":{"url":"https://github.com/Julez64/aws-dotenv/issues"},"homepage":"https://github.com/Julez64/aws-dotenv#readme","scripts":{"test":"npm run lint && jest","build":"del-cli lib && tsc","lint":"eslint . --ext .js,.ts --ignore-path .gitignore","fix":"npm run lint -- --fix"},"dependencies":{"aws-sdk":"^2.766.0","dotenv":"^8.2.0","rc":"^1.2.8"},"devDependencies":{"@types/jest":"^24.9.1","@types/node":"^12.12.62","@types/rc":"^1.1.0","@typescript-eslint/eslint-plugin":"^2.34.0","@typescript-eslint/parser":"^2.34.0","del":"^5.1.0","del-cli":"^3.0.1","eslint":"^6.8.0","eslint-config-prettier":"^6.12.0","eslint-config-xo-space":"^0.21.0","eslint-plugin-prettier":"^3.1.4","jest":"^25.5.4","prettier":"^1.19.1","ts-jest":"^26.4.1","typescript":"^3.9.7"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"licenseText":"Copyright 2021 Julien Ferluc\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@bazylhorsey/aws-dotenv@1.1.1","dist":{"shasum":"164e04e06bf5565d9b54843d0da32d42d5130b12","integrity":"sha512-B9Yi1HkMkfKanjS9xpWomWfPGlRkMScSbxqPFWQ8YqVhwXw4c4eCBwTO+/ypjGsCWwhn2nS7AoUxvUCzJVz+wg==","tarball":"https://registry.npmjs.org/@bazylhorsey/aws-dotenv/-/aws-dotenv-1.1.1.tgz","fileCount":21,"unpackedSize":356168,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFBGKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpl0RAAiNivIA3VSILWKjr3tlP3A1mE48Qf/jcNQxADI80ym1BMdh2Y\r\nA9aISCQnwbXDa3q0Xabqkp1FvsUhiKtQtUN+bo2HC6a9blFLFonm0lDgX092\r\ne3OierJyizPmC6lAnRg1bOQTHVVrbD4gJBVk/29srYJIq5z4R9YSZeYWLElO\r\npfRPuN0XY9sD6Xu3YuIBEabsdgigXcyCVJZ8FwkbtaT4ReYofGfA3tNDe+Te\r\ngBcPbFsoTOEDJdyoXnGj+Nrsr9g3VyjpISRSfGLgWaTLvQvJLHr0YJ9VQ/Ot\r\nsMNXF6qR4rlOJhL3OI3AXicMTGCyAE/subyO+9ujWUR4KEiHXXbtpUns+Slf\r\nLtDc9dwVRZm9Ygn4dgfKsUqjYImHpvDptd5HY6xa28RvI0NRQikE8C7Sqypl\r\n4+22r1zmYlf6PFgiqbVPNVOUEYevh+9ZIBuyuwfJNDuUVa0dK9ZhIvO8YPHd\r\nhy8honk1yZ46b7QFzOqbf675rfgmGgsc+vwr9h7NiWzjdstegsc/ncKHwzPa\r\nGB/bCx6blVZEL2qRj5jGqzIPXCRUAxd5PYvxLIOXDd1eF7N9xoJfE1rpCzC6\r\nCW2QWBC4S7o3MJ3Nth7T930dxtzcoKiaM0WvZHnfpjnwyA04z/MQ9GAgZSBS\r\nDtTq01quI4gf+ndhZ8v1hc+lvLAwOCIROvY=\r\n=SpoJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBhV+wXf8Rd3sEaqB5Wf7s7DgyxyksLB383lEjW+U+8mAiEAotbrZDAfCBaEzol3TkPMtk4If8iS55Zp/4iUWm84ci4="}]},"_npmUser":{"name":"bazylhorsey","email":"bazyl@koloni.me"},"directories":{},"maintainers":[{"name":"bazylhorsey","email":"bazyl@koloni.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aws-dotenv_1.1.1_1645482378458_0.8176470874154"},"_hasShrinkwrap":false}},"time":{"created":"2022-02-21T21:27:11.198Z","1.1.0":"2022-02-21T21:27:11.398Z","modified":"2022-04-04T17:50:11.838Z","1.1.1":"2022-02-21T22:26:18.662Z"},"maintainers":[{"name":"bazylhorsey","email":"bazyl@koloni.me"}],"description":"Manage your dotenv variables with the help of AWS Secrets Manager","homepage":"https://github.com/Julez64/aws-dotenv#readme","keywords":["aws","aws secrets manager","aws environment variables","secrets manager","environment variables","serverless secrets","serverless secrets manager","dotenv","env"],"repository":{"type":"git","url":"git+https://github.com/Julez64/aws-dotenv.git"},"author":{"name":"Bazyl Horsey"},"bugs":{"url":"https://github.com/Julez64/aws-dotenv/issues"},"license":"MIT","readme":"![version](https://img.shields.io/github/package-json/v/Julez64/aws-dotenv?style=flat-square)\n![license](https://img.shields.io/github/license/Julez64/aws-dotenv?style=flat-square)\n![size](https://img.shields.io/github/languages/code-size/Julez64/aws-dotenv?style=flat-square)\n![node](https://img.shields.io/node/v/aws-dotenv?style=flat-square)\n\n\n# aws-dotenv :toolbox:\n\naws-dotenv is a cli tool that manages the envrionment variables for an application stored in the [AWS Secrets Manager](https://aws.amazon.com/secrets-manager/). The tool can set dotenv variables from your machine to the AWS Secrets Manager and pull them back from AWS to a `.env` file.\n\n## Installation :hammer:\n\n```sh\nnpm install aws-dotenv --save-dev\n```\n\n## Configuration :gear:\n\n- Add `.secretsrc` to the project root\n```json\n{\n  \"name\": \"My-Project\",\n  \"description\": \"This project uses aws-dotenv!\",\n  \"keys\": [\n    \"ENV_VARIABLE\",\n    \"ANOTHER_ENV_VARIABLE\"\n  ]\n}\n````\n\n## Authentication :key:\n\n### Using `.awsrc`\n\n- Create `.awsrc`\n```json\n{\n    \"accessKeyId\": \"ACCESS_KEY_ID\",\n    \"secretAccessKey\": \"SECRET_ACCESS_KEY\",\n    \"region\": \"us-east-2\"\n}\n```\n\n### Using AWS default configuration\nAWS Credentials can be configured using the AWS CLI tool. For additionnal AWS configuration documentation please refer to [Configuration and credential file settings](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html).\n\n- Configure the AWS account by creating `~/.aws/credentials`\n```ini\n[default]\naws_access_key_id=access_key_id\naws_secret_access_key=secret_access_key\n```\n\n- Configure the AWS region by creating `~/.aws/config`\n```ini\n[default]\nregion=ca-central-1\noutput=json\n```\n\n- Create `.env` at the root of the project\n```ini\nAWS_SDK_LOAD_CONFIG=1\n```\nAWS_SDK_LOAD_CONFIG allows the tool to use your `~/.aws/` config folder. We recommend to leave it permanently as well as storing the variable inside AWS Secrets Manager.\n\n\n\n## Usage :rocket:\n\n```Shell\n$ aws-dotenv (command) (stage)\n```\n\n### Available Commands\n- pull\n- set\n\n### Stages\nDefault stage is `dev`.\n\nRefers to the development stage of the application. It is used to differentiate the multiple `.env` configurations your project might use at any time. Generally in the form of `dev`, `test` and `prod` but the name does not matter.\n\n### example\nIn these examples the files .env.prod and .env.dev are used. Secret name is defined in AWS Secrets Manager.\nSetting up `package.json`\n```js\n  \"scripts\": {\n    \"set-env-dev\": \"aws-dotenv set {Secret Name}\", // Store the environment variables of this machine to AWS Secrets Manager for dev environment.\n    \"pull-env-dev\": \"aws-dotenv pull {Secret Name} dev\", // Retrieve the environment variables from AWS Secrets Manager dev envrionment to a .env file in the root folder.\n    \"set-env-prod\": \"aws-dotenv set {Secret Name}\", // Store the environment variables of this machine to AWS Secrets Manager for prod environment.\n    \"pull-env-prod\": \"aws-dotenv pull {Secret Name} prod\" // Retrieve the environment variables from AWS Secrets Manager prod envrionment to a .env file in the root folder.\n  }\n````\n\n\n","readmeFilename":"README.md"}