Skip to content

Instantly share code, notes, and snippets.

View homanchou's full-sized avatar

Homan Chou homanchou

  • Los Angeles
View GitHub Profile
#!/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