env-to-ssm
v1.0.1
Published
Deploy environment variables to AWS SSM
Downloads
7
Maintainers
Readme
Node.js Application
A tool to bulk upload environment variables to AWS Systems Manager Parameter Store (SSM). Instead of manually creating SSM parameters one by one through the AWS console, this tool allows you to push multiple environment variables from your local .env
file to SSM in a single operation.
Setup Instructions
Install Dependencies
npm install
Environment Configuration
- Copy the
.env.example
file to create your.env
file:cp .env.example .env
- Fill in the required environment variables in your
.env
file:AWS_REGION=your-aws-region AWS_ACCESS_KEY_ID=your-access-key AWS_SECRET_ACCESS_KEY=your-secret-key # Add other required environment variables
- Copy the
AWS SSM Configuration
- Ensure your AWS credentials have permissions to access Systems Manager (SSM)
- Required IAM permissions:
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "ssm:PutParameter", "ssm:GetParameter", "ssm:GetParameters" ], "Resource": "arn:aws:ssm:*:*:parameter/*" } ] }
- Any environment variable you want to deploy to SSM should be added to your
.env
file - Variables will be automatically synced to SSM when deploying
Start the Application
npm start
Project Files
index.js
- Main application file.env.example
- Template for environment variables.env
- Your local environment configuration (do not commit this file)package.json
- Project dependencies and scripts
Need Help?
If you encounter any issues:
- Make sure all dependencies are installed
- Verify your
.env
file is properly configured with all required variables - Confirm you have the correct AWS permissions set up
- Check the console for error messages
- Ensure your AWS credentials are valid and have SSM access
License
This project is open source and available under the MIT License.