AWS CLI Cheat Sheet/Enable debug logging

Print request/response debugging details.

Section: Common Cross-Service Recipes

Enable debug logging

bash
bash
aws sts get-caller-identity --debug
Explanation

Helpful for diagnosing signing, credential, region, and endpoint issues.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Common Cross-Service Recipes
List AWS regions
Show available regions from EC2.
OpenIn sheetbashsame section
List availability zones
Show AZs for the active region.
OpenIn sheetbashsame section
Create tags on a resource
Attach tags using a service-specific tagging command.
OpenIn sheetbashsame section
Wait for a resource state
Use a waiter until an EC2 instance is running.
OpenIn sheetbashsame section
Show AWS CLI version
Print the installed AWS CLI version.
OpenIn sheetbash1 tag match
Run interactive configure
Set credentials, region, and output format interactively.
OpenIn sheetbash1 tag match