Created
April 28, 2016 08:49
-
-
Save l15k4/e2e4da820f4980d5b98de615f06a1e4a to your computer and use it in GitHub Desktop.
This file contains 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
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