In this example, I will provide the steps for installing/configuring the AWS Bundled Cli on a Linux, OS X or Unix.
Verify you have Python installed, Python 2.6.3 or later
Aws command line interface Download aws command line interface or read online here in PDF or EPUB. Please click button to get aws command line interface book now. All books are in clear copy here, and all files are secure so don't worry about it. Jun 10, 2018 - This article is a quick guide to install AWS Command Line Interface on Microsoft Windows. Step1: Firstly we need to download the MSI files. The AWS Command Line Interface (CLI) is a unified tool to manage your AWS services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts.
python –version
Install Python
- Install Python
- Verify Python is working
- python –help
Install AWS CLI with the Bundled Installer
- Download the AWS CLI Bundled Installer
- Unzip the Package
- Run the installer
- sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
** In order for the AWS CLI to function properly, make sure a symlink is created at ~/bin/aws and that ~/bin is in your $PATH.
If the symlink is setup properly, you can issue commands without running them from the CLI’s default location.
Aws Cli Tools Download
Test the AWS CLI
Graphical Line Interface
- At the AWS CLI command prompt type: aws help
- If the command works, the installation was successful and the symlink is working properly.
Configuring the AWS CLI
Now that we have installed the AWS CLI we have to take some time to configure the utility properly so we can utilize the various command line options.
- Create an IAM account, apply permissions appropriately based on the use of the IAM account. Save the AWS Secret Key and Secret Access Key as this will be used later in the config file to allow access.
- Locate and edit the AWS CLI config file…for OS X, Linus and Unix the file is located here: ~/.aws/config
- The file will contain a default config, you may edit that one or create your own.
- I like to leverage the use of multiple profiles in my config files
- Other parameters to consider adding to the profile
- Output = (Text, JSON, Table) (Default value is JSON, you may add different output for each profile, try each one to determine which works best for you.
- Save the Config file and your ready to start using the AWS CLI
Example Config File with Multiple Profiles
[default]
aws_access_key_id=AKIAI9RSFJSKQKLALDKADLTEST
aws_secret_access_key=asdfDSFD$D$%34dfasdf3434/TestKEY
region=us-east-1
[profile test-user]
aws_access_key_id=AKIfADFSDFA8DHBTEST
aws_secret_access_key=je7MtGasdfasdfewreagdadsfbTestKEY
region=us-west-1
Using the AWS CLI
Now that you have installed and configured the AWS CLI, your ready to start using the utility.
You can take advantage of the multiple profiles created in the earlier steps by modifying your command input each time, here are some examples.
aws –profile default s3 ls s3://AWSTESTBUCKET (this command is leveraging the default profile in my configuration file and is accessing an s3 bucket name AWSTESTBUCKET. If my account has the appropriate permissions to access that s3 bucket, it will list the contents of that bucket.)
aws –profile test-user ec2 describe-instances (this command is leveraging the test-user profile, which provides access to a different region from the other profile and also uses a different access key and secret key. This will list out all of the instances in ec2, in the us-west-1 region.
For one final use of the AWS CLI, I have found it very helpful to utilize the AWS CLI to register and deregister instances from ELB’s. When performing maintenance on systems behind an ELB, you should remove the instance from the ELB, so the ELB doesn’t attempt to deliver traffic so a system that may not be completely functioning or ready to accept. Also, when systems are shut down, the ELB typically does not recover well from that and requires the instance be removed and re-registered with the ELB to correct.
Example commands:
Deregister instances from the ELB:
Register instances with the ELB
aws –profile test-user elb register-instances-with-load-balancer –load-balancer-name test-user –instances i-12345aaa i-6789bbb
I hope you have found this article helpful, please share with others that may benefit from this information.
- Download
If your download is not starting, click here.
Thank you for downloading AWS Command Line Interface from our software portal
The download version of AWS Command Line Interface is 1.11.75. The download is provided as is, with no modifications or changes made on our side. The download was scanned for viruses by our system. We also recommend you to check the files before installation. This download is absolutely FREE.
AWS Command Line Interface antivirus report
This download is virus-free.This file was last analysed by Free Download Manager Lib 62 days ago.
KASPERSKY
MCAFEE
Amazon Cli Download
AVIRA
Command Line Interface Windows 7
WebAdvisor