AWS CloudShell provides a browser-based command line without local CLI installation.
CloudShell basics
AWS CloudShell opens a command line in the browser, already signed in as the console user.
How it works
- Open CloudShell from the console.
- It starts with your console credentials.
- Run CLI commands and scripts.
Exam cues
- If the question says a shellA command-line environment in which a user runs commands. in the browser with no local setup, think CloudShell.
Remember
- Pre-authenticated, in the browser.
Trap: CloudShell uses the permissions of the signed-in user; it grants nothing extra.
Browser shell and permissions
Atualizado em 23 de nov. de 2026, depois que você marcou como sabido. Releia e marque de novo: CloudShell cards now cover supported shells, pricing and VPC environment permissions.
CloudShell environments add permission, storage and network choices to the browser shellA command-line environment in which a user runs commands..
How it works
- Sign in to the console and launch CloudShell. IAM permissions control whether you can create and start the environment and session.
- Run the pre-installed AWS command line interface (CLI) using Bash, PowerShell or Z shell. Console credentials are normally forwarded; if forwarding is denied, configure credentials manually. AWS still evaluates applicable policies for each request.
- Use the home directory for files that must persist between sessions, or create a virtual private cloud (VPC) environment. A VPC is an isolated virtual network. Select a subnetA range of IP addresses within a VPC., a range of network addresses, and security groupsA set of rules controlling traffic to and from associated resources., which control allowed traffic. A VPC environmentA CloudShell environment that uses a selected VPC, subnet and security groups. has no persistent storageStorage whose data remains available between shell sessions..
Exam cues
- If the question says reach resources in a private VPC, think a CloudShell VPC environment, because it uses the selected subnet and security groups.
- If the question says prevent automatic forwarding of console credentials, think deny
cloudshell:PutCredentials, because users must then configure credentials manually.
Remember
- Outside VPC environments, the private home directory has 1 GB of persistent storage per Region. Files may be deleted after 120 days without a session in that Region.
- A VPC environment deletes its home directory on timeout, deletion or restart. Creating one also requires VPC-specific EC2 permissions.
- Inactivity ends sessions after 20 to 30 minutes, or 10 minutes in GovCloud. Continuous sessions end after about 12 hours.
- CloudShell itself has no additional charge; other AWS resources and standard data transfer rates still apply.
Trap: A running process does not count as interaction and cannot prevent an inactive CloudShell session from ending.
Trap: Denying console upload and download URLs does not block all file transfers; other clients can still transfer files.
Da documentação da AWS (18)
- CloudShell supports Bash, PowerShell and Z shell.
- Console credentials are normally forwarded to CloudShell, but IAM can deny cloudshell:PutCredentials and require manual credential configuration.
- IAM policies control CloudShell access and which CloudShell actions are allowed.
- AWSCloudShellFullAccess grants permission to use CloudShell and all its features.
- AWS evaluates applicable policies to authorize requests made by a principal.
- Console launch requires CreateEnvironment, CreateSession, GetEnvironmentStatus and StartEnvironment permissions.
- CloudShell provides 1 GB of private persistent home directory storage per Region at no additional cost, except in VPC environments.
- Persistent storage in a Region is deleted after 120 days without launching CloudShell in that Region unless the user takes action.
- A CloudShell VPC environment uses a selected VPC, subnet and security groups.
- A VPC is a logically isolated virtual network in which AWS resources can be launched.
- A subnet is a range of IP addresses in a VPC.
- A security group controls traffic allowed to reach and leave the resources associated with it.
- A CloudShell VPC environment has no persistent storage, and its home directory is deleted on timeout, deletion or restart.
- Creating a VPC environment requires VPC-specific EC2 permissions, including permission to create a network interface.
- CloudShell sessions end after 20 to 30 minutes of inactivity, or 10 minutes in GovCloud; running processes do not count as interaction.
- A continuously running CloudShell session ends after approximately 12 hours even with regular interaction.
- Denying CloudShell file upload and download URL actions blocks the console transfer feature but does not prevent other file transfer clients.
- CloudShell has no additional service charge, but other AWS resources and standard data transfer rates are charged.
Flashcards
Nada para revisar aqui agora. Escolha outros tópicos ou outro filtro.
Todos os 10 flashcards em lista
A user wants to run AWS CLI commands right from the console without installing anything. What fits?
AWS CloudShell, a pre-authenticated shell in the browser.
Which command shells does AWS CloudShell support?
Bash, PowerShell and Z shell.
A developer needs a browser shell to reach resources in a private VPC. Which CloudShell environment can use that VPC?
A CloudShell VPC environment, configured with a VPC, subnet and security groups.
Does an AWS CloudShell VPC environment preserve files in its home directory after it times out?
No. VPC environments have no persistent storage and the home directory is deleted on timeout.
Does AWS CloudShell charge for the service and for other AWS resources used from the shell?
CloudShell has no additional service charge. Other AWS resources and standard data transfer rates are charged.
A user can launch AWS CloudShell but cannot run an infrastructure command. What authorization should the team examine?
Check the policies applicable to the principal and the requested AWS action. CloudShell access and AWS request authorization are evaluated through IAM policies.
What additional permissions are needed to create an AWS CloudShell VPC environment?
VPC-specific EC2 permissions, including permission to create a network interface.
An administrator denies cloudshell:PutCredentials. Can a user still launch CloudShell and use console credentials automatically?
The user can launch it with the required launch permissions, but must configure credentials manually.
What permissions are needed to launch AWS CloudShell from the AWS Management Console?
Allow CreateEnvironment, CreateSession, GetEnvironmentStatus, and StartEnvironment.
Does AWSCloudShellFullAccess give a CloudShell user permission to call every AWS service?
No. The policy grants CloudShell access; AWS still evaluates applicable policies for each service request.