I want to install Amazon Ec2 cli tools on a linux machine. I have configured java and have installed ec2 cli tools but I am getting the following error:
[root@ip-/]# ec2-describe-regions | sort
Required option '-O, --aws-access-key KEY' missing (-h for usage)
Also please tell me how to set EC2_PRIVATE_KEY, EC2_CERT parameters. How to resolve this.
Option 1:
Set it as environment variable. Perhaps, append the following to your
~/.bashrc
If you do not want to do that, you may also type the above before you execute API commands.
Option 2:
Pass it with every command. Like this:
for example:
You may also want to read the documentation: http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/command-reference.html