✨A cli for AWS Systems Manager Parameter Store (ssm) 🔏
Explore the docs »
Report Bug
·
Request Feature
Many libraries deal with parameter store secrets. However, I didn't find one that suits my needs, so I created this one. I wanted to develop a library that will solve all my needs while using secrets, including exporting the key/secrets to different formats
Here's why:
- Some solutions out there create their prefix to store keys, not leaving much flexibility when trying to migrate if needed.
- Exports were limited, not giving support to JSON output and possible others.
Here is an example of how you may give instructions to set up a local project. You should follow these simple steps to get a local copy up and running:
- node 8 or higher
- AWS credentials to your account. (more info here)
If you wish to use it as a stand alone utility:
npm -g install alohomora
It will make the command alo
available in your command line
alo --help
If instead you would like to have it on a particular package.
npm install --only=dev alohomora
Every command accepts several options via cli or via custom configuration see configuration for more
alo list --prefix my-company/my-app
alo list --prefix my-company/my-app
alohomora can get configuration from several places:
If you are using it as a global command, you can provide all the options via cli:
alo list --prefix my-company/my-app --aws-region us-west-2 --aws-profile myCustomAWSProfile --environment production
for more details you can invoke:
alo --help
You can also define custom configuration in your package:
{
"name": "my-package",
"alohomora": {
"prefix": "my-company/my-app",
"environment": "production",
"region": "us-west-2"
},
"scripts": {
"secrets": "alo export"
},
"devDependencies": {
"alohomora": "^1.0.0"
}
}
When the command is invoked it will take the key alohomora
as configuration.
(my-package)$ npm run secrets
Custom configuration can be defined in many places, for more information check cosmiconfig
See the open issues for a list of proposed features (and known issues).
Contributions are what makes the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.