O'Reilly logo

Mobile DevOps by Jhalak Modi, Rohin Tak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

EC2 CLI

AWS CLI contains multiple modules to manage AWS resources. EC2 CLI is a very straightforward way of creating and managing instances.

Install AWS CLI (commands):  $ curl -O https://bootstrap.pypa.io/get-pip.py                   // Download pip $ python get-pip.py --user                                                         // Install pip for the user $pip install awscli --upgrade --user                                     // Install AWS CLI (remove --user if you want to install for all users)

Format:

$ aws ec2 run-instances <Pass parameters>

Example:

$ aws ec2 run-instances --count 1 --security-groups launch-wizard-1 --subnet-id subnet-1234rt78 --instance-type t2.micro --key-name myTestKey --image-id ami-abc123dec --associate-public-ip-address ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required