Simple AWS CLIs

Before starting to use AWS CLIs, you have to install aws cli packages and configure the credentials. Details, install package can be found here and credential configuration can be found here.

  1. Provision ec2 instance

    aws ec2 run-instances  –subnet-id=”subnet-be426cc8″ –image-id=”ami-9a3322f9″ –instance-type “t2.micro”

  2. Terminate ec2 instance

    aws ec2 terminate-instances –instance-id=”i-04d1633a4097dccc0″

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s