This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# This script will override/interpolate variables in apex project.#{env}.json | |
# environment with their ec2 system manager parameter store counterparts | |
# by making a aws cli ssm call and overriding the environment variables by | |
# writing them to the command line, which takes precedent over the json file | |
# you symlink this script to your $PATH e.g /usr/local/bin/myapex -> scripts/myapex | |
# then alias the original apex to use it e.g. alias apex='myapex' | |
# so you can use apex normally and it will grab the interpolated values for you |