Using IAM access keys

Now that we have created a user and access keys and understand how IAM policies work, it is time to put them to work to make some AWS API calls:

  1. First, let's get the AWS command-line interface (CLI) installed. The easiest way to do so (if you have Python and pip installed on your computer) is to run the following pip command:
pip install awscli --upgrade --user
  1. You can then check to see if the installation was successful by running the following command:
aws --version
For more specific instructions for your operating system, visit: https://docs.aws.amazon.com/cli/latest/userguide/installing.html.
  1. To add our user credentials to the AWS CLI so that we can make API calls, we can run the following command that stores ...

Get Hands-On AWS Penetration Testing with Kali Linux now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.