AWS CloudShell のアイコン

AWS CloudShell Specialized2020年〜

A free managed shell environment that lets you run AWS CLI instantly from your browser

What It Does

AWS CloudShell is a browser-based shell environment that launches with a single click from the AWS Management Console. It comes pre-installed with essential tools like AWS CLI, Python, Node.js, and PowerShell, allowing you to manage AWS resources and run scripts without any local setup. Credentials from the IAM user logged into the console are automatically inherited, so no additional authentication configuration is needed. It includes 1 GB of free persistent storage for saving scripts and files.

Use Cases

CloudShell is used for everyday AWS management tasks: running AWS CLI commands instantly, validating CloudFormation templates and managing stacks, creating and running scripts for bulk AWS resource operations, prototyping with new AWS service APIs, and quickly checking resource status during troubleshooting.

Everyday Analogy

Think of it like a hotel business center. When you need to do some quick work while traveling (in your browser) but don't have your laptop (local environment), you can go to the hotel business center (CloudShell) and use a computer with all the necessary software ready to go. And it's free for hotel guests (logged-in users).

What Is CloudShell?

AWS CloudShell is a browser-based shell environment released in 2020. Simply click the icon at the top of the AWS Management Console, and a shell launches in seconds. Built on Amazon Linux 2023, it comes pre-installed with AWS CLI v2, Python 3, Node.js, git, jq, vim, and other development tools, so you can start working immediately without any additional installation.

Authentication and Security

A major advantage of CloudShell is automatic credential inheritance. The credentials of the IAM user or role logged into the AWS Management Console are applied directly to CloudShell, eliminating the need for access key configuration or MFA re-authentication. Available operations are controlled by IAM policies, so you can manage AWS resources conveniently while maintaining security. For networking, access to resources within a VPC is also possible through VPC configuration. To broaden your knowledge of authentication and security, related books on Amazon can be helpful.

Persistent Storage and Limitations

CloudShell provides 1 GB of free persistent storage per region. Files saved in your home directory are retained between sessions, so you can store frequently used scripts and configuration files. However, note that storage is deleted if CloudShell is not used for 120 days. The session timeout is 20 minutes, and inactive sessions are automatically disconnected. You can run up to 10 sessions simultaneously.

Things to Watch Out For

  • CloudShell sessions time out after 20 minutes of inactivity, so it is not suitable for long-running processes
  • Persistent storage is deleted after 120 days of non-use, so back up important scripts separately
共有するXB!