AWS Command Line

Introduction

AWS CLI is a multi platform tool for interacting with AWS services.

Config

# Configure a profile to authenticate with
aws configure

# Create Profiles
aws configure --profile <profilename>

STS Service

This is the whoami of AWS CLI.

# Call the Security Token Service (STS) to test creds
aws sts get-caller-identity

OR

aws sts get-caller-identity --profile <profile name>


REFERENCES

Last updated