I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
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 |
Prerequisites:
- One or more clients running a UNIX-like OS. Examples are given for Ubuntu 12.04 LTS, although all software components are available for other platforms as well (e.g. OS X). YMMV
- A cheap Ubuntu 12.04 VPS with storage. I recommend Backupsy, they offer 250GB storage for $5/month. Ask Google for coupon codes.
Software components used: