AWS CLI Recipes
View CommandsManage AWS cloud resources from the terminal. EC2, S3, Lambda, IAM, and infrastructure automation with the AWS CLI.
10 recipes
Cross-Account IAM Role Assumption with MFA
Securely assume IAM roles across AWS accounts using MFA-protected temporary credentials for least-privilege access.
Query and Filter CloudWatch Logs with Insights
Use CloudWatch Logs Insights to search, filter, and analyze log data across log groups with powerful query syntax for rapid debugging.
CLI-Based Cost Explorer and Budget Alerts
Analyze AWS spending from the command line using Cost Explorer APIs and configure budget alerts to catch unexpected cost spikes early.
Launch, Connect, and Manage EC2 Instances
Provision EC2 instances from the CLI, configure security groups, connect via SSH, and manage instance lifecycle operations.
ECS Service Rolling Deployment and Troubleshooting
Perform zero-downtime rolling deployments of ECS Fargate services, monitor task health, and troubleshoot failed deployments with circuit breaker rollbacks.
Deploy Lambda Functions from CLI with Layers
Package and deploy AWS Lambda functions using the CLI, including dependency management through Lambda layers for smaller deployment bundles.
Database Backup and Point-in-Time Recovery with RDS
Create manual RDS snapshots, configure automated backups, and perform point-in-time recovery to restore databases to any second within the retention window.
Static Site Deployment with S3 Sync and CloudFront Invalidation
Deploy a static website to S3 with optimized cache headers and trigger a CloudFront invalidation for instant global propagation.
Manage and Rotate Secrets with AWS Secrets Manager
Store, retrieve, and configure automatic rotation of secrets using AWS Secrets Manager for database credentials, API keys, and other sensitive data.
Secure Shell Access via SSM Without SSH Keys
Connect to EC2 instances securely using AWS Systems Manager Session Manager, eliminating the need for SSH keys, bastion hosts, or open inbound ports.