Skip to the content.
AWS Developer Associate

Developing on AWS (CLI, SDK and IAM Policies)

AWS CLI Dry Runs

AWS CLI STS Decode Errors

AWS EC2 Instance Metadata

MFA with CLI

CLI: Command Line Interface

Add user credentials locally using this command:

If you are using multiple AWS accounts, you can add custom profiles with seperate credentials using this command:

AWS CLI on EC2

CLI STS Decode Errors

AWS SDK Overview

AWS Limits (Quotas)

Exponential Backoff (any AWS service)

AWS CLI Credentials Provider Chain

  1. Command line options – –region, –output, and –profile
  2. Environment variables – AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_SESSION_TOKEN
  3. CLI credentials file –aws configure ~/.aws/credentials on Linux / Mac & C:\Users\user.aws\credentials on Windows
  4. CLI configuration file – aws configure ~/.aws/config on Linux / macOS & C:\Users\USERNAME.aws\config on Windows
  5. Container credentials – for ECS tasks
  6. Instance profile credentials – for EC2 Instance Profiles

AWS Credentials Best Practices