Created
April 22, 2016 16:55
-
-
Save dkarchmer/76ea00383906a5430828c1d503d79170 to your computer and use it in GitHub Desktop.
How to create a docker-machine for AWS
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
#!/bin/bash | |
echo "Creating docker machine on AWS: $1" | |
source .env | |
docker-machine create -d amazonec2 \ | |
--amazonec2-access-key=$AWS_ACCESS_KEY_ID \ | |
--amazonec2-secret-key=$AWS_SECRET_ACCESS_KEY \ | |
--amazonec2-vpc-id=$AWS_VPC_ID \ | |
--amazonec2-instance-type=c4.4xlarge \ | |
--amazonec2-region=$AWS_REGION \ | |
--amazonec2-iam-instance-profile=$AWS_INSTANCE_PROFILE \ | |
$1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment