Skip to content

Instantly share code, notes, and snippets.

@gemmadlou
Last active October 15, 2016 22:33
Show Gist options
  • Select an option

  • Save gemmadlou/d98956ac92e882066e0979c9a1560090 to your computer and use it in GitHub Desktop.

Select an option

Save gemmadlou/d98956ac92e882066e0979c9a1560090 to your computer and use it in GitHub Desktop.
Provisioning Applications To AWS

Provisioning Applications To AWS

Set Up Docker

On Windows

Install Kitematic - https://kitematic.com/

Fire Up Docker Machine

  • Follow installation procedure
  • Open the Docker Machine Quick Terminal

Install AWS Container

https://github.com/fstab/docker-aws-cli

Create AWS IAM Roles

Configure AWS

Add the IAM Roles ID and Secret Key as prompted by running:

$ aws configure

Creating An Instance

http://docs.aws.amazon.com/cli/latest/userguide/cli-ec2-keypairs.html

$ aws ec2 create-key-pair --key-name MyKeyPair --query 'KeyMaterial' --output text > MyKeyPair.pem

$ aws ec2 run-instances --image-id ami-ed82e39e --count 1 --instance-type t1.micro --key-name MyKeyPair --security-groups security-group-name 

$ aws ec2 create-tags --resources i-xxxxxxxx --tags Key=Name,Value=MyInstance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment