CLI Index CLI Index
← Back

AWS CLI

Official MCP

Amazon's official CLI for managing AWS services — EC2, S3, Lambda, DynamoDB, and 200+ services

Agent Support
4/5
Platforms
macoslinuxwindows
Authentication

API Key — Run aws configure to set Access Key ID and Secret Access Key, or use IAM roles / SSO

Agent Usage Example

shell
aws s3 ls s3://my-bucket --output json

Installation

brew install awscli

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.

Related Tools