Using AWS CloudShell: A Handy Alternative to the Terminal
AWS CloudShell is a browser-based terminal available within the AWS Management Console that provides an alternative to using a local terminal for running AWS CLI commands.
What Is AWS CloudShell?
AWS CloudShell is a terminal in the cloud that enables you to run AWS CLI commands directly from your browser. It comes pre-installed with the AWS CLI and other useful tools, allowing you to interact with AWS services seamlessly without additional setup.
Key Characteristics of AWS CloudShell:
- Pre-Installed AWS CLI:
- AWS CLI is already set up in CloudShell.
- Example command:
aws --version confirms the installed CLI version (e.g., version 2.1 in the lecture).
- No Additional Costs: The service is free to use.
- Automatic Authentication:
- When you run commands in CloudShell, it uses your AWS account credentials automatically.
- Default region matches the one you’re logged into via the AWS Management Console.
CloudShell Availability
- Limited to Specific Regions: CloudShell is not available in all AWS regions.
- To check availability, refer to the CloudShell FAQ in AWS documentation.
- Choose a supported region for CloudShell if you plan to follow along with hands-on exercises.
Features and Functionalities
1. Persistent File Storage
- CloudShell includes a small amount of persistent storage for your files.
- Example:
The file demo.txt will remain available even if you restart CloudShell.
```bash
echo "test" > demo.txt
```
2. Customizations
- Adjust font size (e.g., small, medium, large).
- Switch between light and dark themes.