CLI (Command Line Interface)
💡 Definition
The AWS Command Line Interface (CLI) is a unified tool to manage your AWS services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts.
🔑 Key Concepts
- Unified Tool: One installation to manage all services (
aws s3 ...,aws ec2 ...). - Automation: Key for scripting repetitive tasks.
- Cross-Platform: Available for Windows, macOS, and Linux.
- Direct API Access: Provides direct access to the public APIs of AWS services.
⚙️ How it Works
- Install: Install the AWS CLI v2.
- Configure: Run
aws configureand provide your Access Key ID, Secret Access Key, default Region, and output format. - Run Commands: Execute commands like
aws s3 lsto list your buckets.
🎯 Use Cases
- Scripting: automating daily backups or resource cleanup.
- CI/CD: Integrating AWS actions into deployment pipelines.
- Power Users: Performing tasks faster than clicking through the console.
💰 Pricing Model
- Free: The tool is free.
📝 Exam Tips (CLF-C02)
- Used for automation and scripting.
- Requires Access Key ID and Secret Access Key (programmatic access).
- Can be installed on your local machine or used in CloudShell.
See Also: * Management Console * SDK * IAM