List all your EC2 tags: aws ec2 describe-tags -output table List all your users and display the output in a table: aws iam list-users -output table What next? Maybe the first thing would be to get a CLI-driven feel for what you have on your S3 account. So, hopefully, you now have the AWS CLI installed on your PC. *Parameters can take various types of input values, such as numbers, strings, lists, maps, and JSON structures. Keep in mind that any commands you enter in the CLI will have this standard format: aws
Here is the basic AWS CLI command structure. Try out the following from your command prompt and if you have any s3 buckets you should see them listed: aws s3 ls For future convenience, also add this line to your ~/.bashrc file: export AWS_CONFIG_FILE=$HOME/.aws/config This is especially important if you want to keep it in a non-standard location. Optionally, you can set an environment variable pointing to the config file. Protect the config file: chmod 600 ~/.aws/config awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/awsĪdd your Access Key ID and Secret Access Key to ~/.
Try out the following command from your cmd prompt and, if you have any s3 buckets, you should see them listed aws s3 ls Install the AWS CLI on Linux, Mac or Unix Operating Systemįollow these steps from the command line to install the AWS CLI $ curl "" -o "awscli-bundle.zip" aws configureĪWS Access Key ID : AKIAIOSFODNN7EXAMPLEĪWS Secret Access Key : wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY You can probably leave the other two – region and output format – as default for the time being. Those you will definitely need to provide. The AWS Access Key ID and AWS Secret Access Key are your account credentials. Through aws configure, the AWS CLI will prompt you for four pieces of information. …command is the fastest way to set up your AWS CLI installation. To be able to connect to your AWS account, you’ll need one more step.įor Windows, in my opinion, the... aws configure However, we’ve only installed AWS CLI on your PC. The CLI installs to C:\Program Files (x86)\Amazon\AWSCLI C:\Program Files (x86)\Amazon\AWSCLI>aws -version The CLI installs to C:\Program Files\Amazon\AWSCLI C:\Program Files\Amazon\AWSCLI>aws -version
To confirm the installation, use the aws -version command at a command prompt (open the START menu and search for “cmd” if you’re not sure how to find the command prompt). Please use the 32-bit installer with this version of Windows. The 64-bit version of the AWS CLI does not currently work with Windows Server 2008 (version ).
The more you use the AWS CLI, the more you’ll see how powerful it is.
In this article, I will show you how to install the AWS CLI on your Windows PC or on a Linux, Mac, or Unix Operating System. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts. The AWS CLI is a unified tool to manage your AWS services from a terminal session on your own PC. Maybe it’s time you checked out the AWS CLI (Command Line Interface). But you definitely get the feeling that there may be a little more to this AWS thing than their eye-catching browser console. So you’ve got yourself an AWS account and, after a few months, you’re feeling pretty comfortable clicking your way through all the services.
The AWS CLI is for managing your AWS services from a terminal session on your own PC, allowing you to control and script multiple AWS services. Also, the Cloud Academy’s AWS CLI Course is your go-to course if you want to start studying this topic. (Update) We recommend reading How to Use AWS CLI blog post if you’re interested in learning more about AWS CLI.