Amazon EC2 CLI Installation: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(22 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
</pre> | </pre> | ||
=Unzip= | |||
<pre> | |||
cd /opt | cd /opt | ||
unzip .../ec2-api-tools.zip | unzip .../ec2-api-tools.zip | ||
ln -s ./ec2-api-tools-1.7. | ln -s ./ec2-api-tools-1.7.5.1 ec2-api-tools | ||
</pre> | |||
Adjust the command to reflect the actual EC2 API tools version. | |||
=Post-Install= | |||
==Set <tt>JAVA_HOME</tt>== | |||
Set JAVA_HOME for all accounts that are going to use ec2 tools. | Set JAVA_HOME for all accounts that are going to use ec2 tools. | ||
==Set Environment== | |||
For all users that are going to use it: | For all users that are going to use it, configure the following environment variables in their <tt>.bashrc</tt> (or equivalent): | ||
<pre> | |||
export EC2_HOME=/opt/ec2 | export EC2_HOME=/opt/ec2-api-tools | ||
export PATH=${PATH}:${EC2_HOME}/bin | export PATH=${PATH}:${EC2_HOME}/bin | ||
</pre> | |||
==<span id='Set_the_Access_Keys'>Set AWS Credentials== | |||
{{Internal|Setting AWS Credentials|Setting AWS Credentials}} | |||
=Test Installation= | |||
<pre> | |||
ec2-describe-regions | ec2-describe-regions | ||
</pre> | |||
=Set the Region= | |||
| | {{Internal|AWS_Region_Operations#Setting_Region_for_EC2_CLI|Set AWS Region}} | ||
| | |||
Latest revision as of 23:11, 9 April 2019
External
- Setting Up the Amazon EC2 Command Line Interface Tools on Linux/Unix and Mac OS X http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/set-up-ec2-cli-linux.html
Internal
Download
wget http://s3.amazonaws.com/ec2-downloads/ec2-api-tools.zip
Unzip
cd /opt unzip .../ec2-api-tools.zip ln -s ./ec2-api-tools-1.7.5.1 ec2-api-tools
Adjust the command to reflect the actual EC2 API tools version.
Post-Install
Set JAVA_HOME
Set JAVA_HOME for all accounts that are going to use ec2 tools.
Set Environment
For all users that are going to use it, configure the following environment variables in their .bashrc (or equivalent):
export EC2_HOME=/opt/ec2-api-tools export PATH=${PATH}:${EC2_HOME}/bin
Set AWS Credentials
Test Installation
ec2-describe-regions