AWS CLI
Manage AWS cloud resources from the terminal. EC2, S3, Lambda, IAM, and infrastructure automation with the AWS CLI.
65 commands
Browse by Topic
Getting Started
Quick setup and installation
EC2
Elastic Compute Cloud
S3
Simple Storage Service
IAM
Identity and Access Management
Lambda
Serverless functions
CloudWatch
Monitoring and logs
ECS
Elastic Container Service
RDS
Relational Database Service
EKS
Elastic Kubernetes Service
DynamoDB
NoSQL database service
SSM
Systems Manager
Install AWS CLI (macOS)
Install AWS CLI using Homebrew on macOS
Configure credentials
Set up AWS access key, secret key, and default region
Verify configuration
Verify AWS credentials by getting current user identity
List instances
List instances with ID, state, and name.
Start instance
Start a stopped EC2 instance.
Stop instance
Stop a running EC2 instance.
Terminate instance
Permanently delete an instance.
Get public IP
Get public IP address of instance.
List security groups
List all security groups.
Create key pair
Create and save SSH key pair.
List AMIs
Search for AMIs by name pattern.
List buckets
List all S3 buckets.
List bucket contents
List all objects in bucket.
Copy to S3
Upload file to S3.
Copy from S3
Download file from S3.
Sync to S3
Sync directory, deleting removed files.
Create bucket
Create new S3 bucket.
Delete bucket
Delete bucket and all contents.
Presigned URL
Generate temporary download URL.
Get bucket size
Show total bucket size and object count.
Get caller identity
Show current account and user/role info.
List users
List all IAM users.
List roles
List all IAM roles.
Assume role
Get temporary credentials for role.
List attached policies
Show policies attached to user.
Create access key
Create new access key for user.
List functions
List all Lambda functions.
Invoke function
Invoke Lambda with payload.
Invoke async
Invoke Lambda asynchronously.
Update function code
Deploy new code from zip file.
Get function config
Show function configuration.
Tail logs
Stream CloudWatch logs.
List log groups
List all log groups.
Tail logs
Stream logs from last hour.
Filter logs
Search logs for pattern.
List alarms
List all CloudWatch alarms.
Get metrics
Get metric statistics.
Start Insights query
Start CloudWatch Logs Insights query.
Get query results
Retrieve Insights query results by ID.
Tail logs
Stream logs in real-time with follow mode.
List clusters
List all ECS clusters.
List services
List services in cluster.
Describe service
Get service details.
Force deployment
Force new deployment.
Scale service
Change desired task count.
List tasks
List running tasks.
Execute command
Open shell in container.
List instances
List RDS instances with status.
Start instance
Start stopped RDS instance.
Stop instance
Stop RDS instance.
Create snapshot
Create manual snapshot.
List snapshots
List snapshots for instance.
Get endpoint
Get database endpoint.
List clusters
List all EKS clusters in region.
Describe cluster
Get detailed cluster information and status.
Update kubeconfig
Configure kubectl to access EKS cluster.
Create node group
Create managed node group with autoscaling.
Batch get items
Read multiple items across tables efficiently.
Batch write items
Bulk insert/delete up to 25 items per request.
Query with conditions
Query with partition key and sort key conditions.
Transact write items
Execute ACID transactions across items.
Get parameter
Retrieve parameter value with KMS decryption.
Put secure parameter
Store encrypted parameter with KMS.
Get parameters by path
Retrieve all parameters under a path hierarchy.
Delete parameter
Remove parameter from Parameter Store.
Discussion
Loading comments...