/docker-machine-on-aws

This project allows the user to deploy a docker machine on AWS, securely, with a valid DNS name (mirrored from bitbucket)

Primary LanguageShell

docker-machine-on-aws

This script sets up a docker machine on AWS with a static IP and DNS entry.

To run this script, you need:-

Before running, make sure you have the following environment variables:-

export AWS_SECRET_ACCESS_KEY=your-secret-access-key
export AWS_ACCESS_KEY_ID=your-access-key-id
export AWS_REGION=your-region-id (I use eu-west-1) 
export AWS_DEFAULT_REGION=$AWS_REGION
export AWS_VPC_ID=your-vpc-id

Then, do:-

#./createDockerInstance.sh <newSubdomain> <domain>
# for instance:
./createDockerInstance.sh www myRegisteredDomain.com