Skip to content

Instantly share code, notes, and snippets.

@rendon
Created October 18, 2015 01:20
Show Gist options
  • Save rendon/44ad5016b6c1b1a73056 to your computer and use it in GitHub Desktop.
Save rendon/44ad5016b6c1b1a73056 to your computer and use it in GitHub Desktop.

Create instance

Using the ec2 tools:

ec2-run-instances ami-xxxxxxxx -t t2.micro -k mykeypair -g sg-xxxxxxx

Using aws:

aws ec2 run-instances --image-id ami-xxxxxx --count 1 --instance-type t2.micro --key-name mykeypair --security-groups mysecuritygroup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment