Skip to content

Instantly share code, notes, and snippets.

@dkarchmer
Created April 22, 2016 16:55
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 dkarchmer/76ea00383906a5430828c1d503d79170 to your computer and use it in GitHub Desktop.
Save dkarchmer/76ea00383906a5430828c1d503d79170 to your computer and use it in GitHub Desktop.
How to create a docker-machine for AWS
#!/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