On Linux or macOS, you can use the bundled installer to install version 1 of the AWS Command Line Interface (AWS CLI). The bundled installer includes all dependencies and can be used offline. The bundled installer doesn't support installing to paths that contain spaces. AWS is the most widely used cloud service in the world and provides a collection of services that can be leveraged by developers to build their applications. To manage the various AWS services, you can use either the AWS Management Console or the AWS Command Line Interface. However if you want automate your development environment setup using scripts, the AWS CLI is your preferred tool. Download: Mac OS: Download: AWS OpsHub Demo (2:35). This course teaches learners how to use the device to transfer data using the AWS Command Line Interface (AWS CLI). The course also teaches how to complete a Snowball Edge job and ship the device back to AWS.

Aws Cli 2

Installer

Download and run the MSI Installer.

This app allows you to use AWS (Amazon Web Services) S3 as backup system for desktop environments. Like Dropbox or Google Drive app you can backup your important data on AWS S3. This desktop app allows you to configure 3 different types of backup job (One time, recurring, live) to backup your data in an S3 bucket.

Python, pip and AWS CLI

To install Python 3 and pip

If you don’t have Python 3 and pip install do the following.

Download and install the Python 3 installer from Python.org

Install aws-cli via pip

Using the Windows Command Prompt verify that both python and pip are installed.

Install the aws-cli via pip

Adding the AWS CLI Executable to your Command Line Path

After installing with pip, add the aws program to your OS’s PATH environment variable.

  • Python 3 and pipC:Program FilesPython37Scripts

  • Python 3 and pip –user option%USERPROFILE%AppDataLocalProgramsPythonPython37Scripts

Cli

To modify your PATH variable (Windows)

  1. Press the Windows key and type environment variables.

  2. Choose Edit environment variables for your account.

  3. Choose PATH and then choose Edit.

  4. Add paths to the Variable value field, separated by semicolons. For example: C:existingpath;C:newpath

  5. Choose OK twice to apply the new settings.

  6. Close any running command prompts and re-open.

Brew Method

Brew is a package manager that helps install a bunch of packages that apple didn’t include. It can save you a-lot of time.

Install brew (skip if already installed)

Paste this into the terminal prompt. The script explains what it will do then pauses before it does.

Install aws-cli

Pip Method

Check if pip and python is installed.

If python is not installed download and install Python 3.6 from Python.org

If pip is not installed run the following provided by the Python Packaging Authority.

Install aws-cli via pip

Adding the AWS CLI Executable to your Command Line Path

After installing with pip, you may need to add the aws program to your OS’s PATH environment variable. The location of the program depends on where Python is installed.

If you don’t know where it was installed run the following command. The first output path may be to a symlink, so we need to run -al to where it points.

pip installs programs in the same folder that contains the Python program. Add this folder to your PATH variable.

To modify your PATH variable (Linux, macOS, or Unix)

Find your shell’s profile script in your user folder. If you are not sure which shell you have, run echo $SHELL.

Add an export command to your profile script.

This command adds a path, ~/.local/bin in this example, to the current PATH variable.

Load the profile into your current session.

Check if your AWS CLI install was successful.

Configure AWS-CLI with aws configure

After this command is run, it will ask for 4 pieces of information:

The most important pieces of information are AWS Access Key ID [****************DXAQ]:and AWS Secret Access Key [****************0lUP]:

To get your access key information –

  1. Navigate and sign into AWS Console
  2. Go to the “IAM” section
  3. Click on “Users”
  4. Find you username and click on it
  5. Click on the “Security credentials” and click create access key.

The two other pieces of information remaining are Default region nameand Default output format. Set your region to where you would like your commands to run. I typically leave the output format as None, however text, json and table are available.

Related posts

  • Quick Guide: Setting up AWS CLI with MFA / Cross-Account Roles March 20, 2019
  • GuardDuty in a multi-account organization with Terraform February 1, 2019
  • Testing Lambdas locally with aws-sam-cli January 4, 2019

Installer

Download and run the MSI Installer.

Python, pip and AWS CLI

To install Python 3 and pip

If you don’t have Python 3 and pip install do the following.

Download and install the Python 3 installer from Python.org

Install aws-cli via pip

Using the Windows Command Prompt verify that both python and pip are installed.

Install the aws-cli via pip

Aws Cli Install Mac Os

Adding the AWS CLI Executable to your Command Line Path

After installing with pip, add the aws program to your OS’s PATH environment variable.

  • Python 3 and pipC:Program FilesPython37Scripts

  • Python 3 and pip –user option%USERPROFILE%AppDataLocalProgramsPythonPython37Scripts

To modify your PATH variable (Windows)

  1. Press the Windows key and type environment variables.

  2. Choose Edit environment variables for your account.

  3. Choose PATH and then choose Edit.

  4. Add paths to the Variable value field, separated by semicolons. For example: C:existingpath;C:newpath

  5. Choose OK twice to apply the new settings.

  6. Close any running command prompts and re-open.

Brew Method

Brew is a package manager that helps install a bunch of packages that apple didn’t include. It can save you a-lot of time.

Install brew (skip if already installed)

Paste this into the terminal prompt. The script explains what it will do then pauses before it does.

Install aws-cli

Pip Method

Check if pip and python is installed.

If python is not installed download and install Python 3.6 from Python.org

If pip is not installed run the following provided by the Python Packaging Authority.

Install aws-cli via pip

Aws cli download mac

Adding the AWS CLI Executable to your Command Line Path

After installing with pip, you may need to add the aws program to your OS’s PATH environment variable. The location of the program depends on where Python is installed.

If you don’t know where it was installed run the following command. The first output path may be to a symlink, so we need to run -al to where it points.

pip installs programs in the same folder that contains the Python program. Add this folder to your PATH variable.

To modify your PATH variable (Linux, macOS, or Unix)

Find your shell’s profile script in your user folder. If you are not sure which shell you have, run echo $SHELL.

Add an export command to your profile script.

This command adds a path, ~/.local/bin in this example, to the current PATH variable.

Load the profile into your current session.

Check if your AWS CLI install was successful.

Configure AWS-CLI with aws configure

After this command is run, it will ask for 4 pieces of information:

The most important pieces of information are AWS Access Key ID [****************DXAQ]:and AWS Secret Access Key [****************0lUP]:

To get your access key information –

  1. Navigate and sign into AWS Console
  2. Go to the “IAM” section
  3. Click on “Users”
  4. Find you username and click on it
  5. Click on the “Security credentials” and click create access key.

The two other pieces of information remaining are Default region nameand Default output format. Set your region to where you would like your commands to run. I typically leave the output format as None, however text, json and table are available.

Related posts

  • Quick Guide: Setting up AWS CLI with MFA / Cross-Account Roles March 20, 2019
  • GuardDuty in a multi-account organization with Terraform February 1, 2019
  • Testing Lambdas locally with aws-sam-cli January 4, 2019