golang script for config injection of AWS SSM parameter-store values.
install:
sudo curl -L -o /usr/local/bin/param-inject https://github.com/rbi13/aws-param-inject/releases/download/0.0.2/aws-param-inject-linux-amd64
sudo chmod +x /usr/local/bin/param-inject
example:
# Treat the binary as a passthrough script
export AWS_REGION='us-east-1'
export AWS_ENV_PATH='/production/app1'
param-inject node -e "console.log(process.env)"
# OR
AWS_REGION='us-east-1' AWS_ENV_PATH='/production/app1/' param-inject node -e "console.log(process.env)"
Use multiple namespaces by seperating them with semi-colons:
AWS_ENV_PATH='/production/all;/production/app1'