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