requires Python and aws-cli
This package provides a unified command line interface to Amazon Web Services.
The aws-cli package works on Python versions:
- 2.6.5 and greater
- 2.7.x and greater
- 3.3.x and greater
- 3.4.x and greater
- 3.5.x and greater
The easiest way to install aws-cli is to use pip:
$ pip install awscli
or, if you are not installing in a virtualenv:
$ sudo pip install awscli
If you have the aws-cli installed and want to upgrade to the latest version
you can run:
$ pip install --upgrade awscli
MUST EDIT aws-ec2-script-template.json with details specific to your AWS account and configuration. Be sure to remove all comments from JSON file before running.
From the local directory where your aws-ec2-script-template.json file is stored, execute the following:
$ aws ec2 request-spot-instances --spot-price "0.02" --launch-specification file://ec2-run-script-template.json
The command above will request a spot instance with price set at $0.02/hr.
"To launch a regular instance rather than spot instance, execute the following":
$ aws ec2 run-instances --launch-specification file://ec2-run-script-template.json
Please see: https://docs.aws.amazon.com/cli/latest/reference/ec2/