Skip to content

Instantly share code, notes, and snippets.

@crizstian
Created April 12, 2019 18:38
Show Gist options
  • Save crizstian/234680c638f60c1b24428bd82a0ca811 to your computer and use it in GitHub Desktop.
Save crizstian/234680c638f60c1b24428bd82a0ca811 to your computer and use it in GitHub Desktop.
# /bin/bash
chmod +x environment.sh
# add aws keys
AWS_ACCESS_KEY=
AWS_SECRET_KEY=
function buildImage {
export MACHINE_TYPE=$1
/usr/local/bin/packer build -force $2.json
}
buildImage mongodb aws
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment