Skip to content

Instantly share code, notes, and snippets.

@l15k4
Created April 28, 2016 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save l15k4/e2e4da820f4980d5b98de615f06a1e4a to your computer and use it in GitHub Desktop.
Save l15k4/e2e4da820f4980d5b98de615f06a1e4a to your computer and use it in GitHub Desktop.
docker-machine create \
--driver amazonec2 \
--amazonec2-access-key ${AWS_ACCESS_KEY_ID} \
--amazonec2-secret-key ${AWS_SECRET_ACCESS_KEY} \
--amazonec2-region ${REGION} \
# --amazonec2-private-address-only \
--amazonec2-vpc-id vpc-fcf8e29e \
--amazonec2-instance-type ${INSTANCE_TYPE} \
--amazonec2-root-size ${VOLUME_SIZE} \
--amazonec2-security-group ${SECURITY_GROUP} \
--amazonec2-zone a \
${INSTANCE_NAME} || { echo "docker-machine failed to create ec2 instance ${INSTANCE_NAME} ... exiting!"; exit 1; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment