Skip to content
Parse ENV to AWS Secret Manager
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

📦 parse-env-to-secretmanager

We had a requirement to store our env files to secret manager so that we can fetch it in real time. I wrote a script for it and open sourcing it now.

Thanks to ( for making things easy for me.

→ How does it work

let environmentJson = parseFileSync(sourcePath) // parsing env to json

storeJsonToFile(environmentJson) // store converted json to output.json file 

createSecret(environmentJson) // store secret in secret manager

note: you can either pass file pass as a command line argument (node index.js filename) or change sourcePath variable.


Licensed Under GPL 2.0.

You can’t perform that action at this time.