AWS CLI is the official command-line tool for Amazon Web Services, providing unified access to 200+ services including EC2 (compute), S3 (storage), Lambda (serverless), DynamoDB (database), ECS/EKS (containers), CloudFormation (IaC), and IAM (access management).
For AI agents, the CLI’s key strength is its consistent aws <service> <action> command structure across all services, combined with --output json for machine-readable results and --query (JMESPath) for server-side filtering. Agents can manage the full cloud lifecycle: launch EC2 instances, sync files to S3 buckets, deploy Lambda functions, query DynamoDB tables, and provision infrastructure via CloudFormation stacks. The aws s3 high-level commands (cp, sync, mv) are particularly agent-friendly for file operations.
Authentication supports multiple modes: long-term access keys (aws configure), IAM instance roles, SSO (aws sso login), and temporary STS credentials. Named profiles (--profile) enable agents to switch between accounts and environments. The CLI also supports --cli-auto-prompt for interactive discovery and aws sts get-caller-identity for verifying current credentials.