AWS Cloudshell User Guide
Total Page:16
File Type:pdf, Size:1020Kb
AWS CloudShell User Guide AWS CloudShell: User Guide Copyright © Amazon Web Services, Inc. and/or its affiliates. All rights reserved. AWS CloudShell User Guide Amazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon. AWS CloudShell User Guide Table of Contents What is AWS CloudShell? .................................................................................................................... 1 AWS CloudShell features ............................................................................................................. 1 AWS Command Line Interface ............................................................................................. 1 Shells and development tools .............................................................................................. 1 Persistent storage .............................................................................................................. 2 Security ............................................................................................................................ 2 Customization options ........................................................................................................ 2 Pricing ...................................................................................................................................... 2 How do I get started? ................................................................................................................. 3 Key AWS CloudShell topics .......................................................................................................... 3 FAQs ......................................................................................................................................... 3 How do I start with AWS CloudShell? ................................................................................... 3 What permissions do I need to access AWS CloudShell? .......................................................... 4 Which AWS Regions is AWS CloudShell available in? ............................................................... 4 What types of shell can I use in AWS CloudShell? ................................................................... 4 What web browsers can I use with AWS CloudShell? ............................................................... 4 What software is pre-installed on my shell environment? ........................................................ 4 Can I install software that's not available in the shell environment? .......................................... 5 Can I restrict the actions that users can perform in AWS CloudShell? ........................................ 5 How can I move data from my home directory if I want to change the AWS Region where I'm using AWS CloudShell? ....................................................................................................... 5 Getting started tutorial ....................................................................................................................... 6 Prerequisites .............................................................................................................................. 6 Contents ................................................................................................................................... 6 Step 1: Sign in to AWS Management Console ................................................................................ 7 Step 2: Launch AWS CloudShell, select a Region, and choose a shell. ................................................ 8 Step 3: Upload a file to AWS CloudShell ....................................................................................... 9 Step 4: Edit your file's code and run it from the command line ....................................................... 10 Step 5: Use AWS CLI to add the file as an object in an Amazon S3 bucket. ....................................... 11 Related topics .......................................................................................................................... 12 Tutorials .......................................................................................................................................... 13 Tutorial: Copying multiple files .................................................................................................. 13 Uploading and downloading multiple files using Amazon S3 .................................................. 13 Uploading and downloading multiple files using zipped folders .............................................. 15 Tutorial: Using CodeCommit ...................................................................................................... 16 Prerequisites .................................................................................................................... 16 Step 1: Create and clone a CodeCommit repository .............................................................. 16 Step 2: Stage and commit a file before pushing it to your CodeCommit repository .................... 17 Tutorial: Creating presigned URLs ............................................................................................... 18 Prerequisites .................................................................................................................... 18 Step 1: Create an IAM role to grant access to Amazon S3 Bucket ............................................ 18 Generate the presigned URL .............................................................................................. 19 Working with AWS CloudShell ........................................................................................................... 21 Launching AWS CloudShell ........................................................................................................ 21 Navigating the AWS CloudShell interface .................................................................................... 21 Choosing shells ........................................................................................................................ 22 Working in AWS Regions ........................................................................................................... 22 Specifying your default AWS Region for AWS CLI ................................................................. 23 Working with files and storage .................................................................................................. 23 Starting and ending shell sessions .............................................................................................. 25 Working with AWS services ................................................................................................................ 27 AWS CLI command line examples for selected AWS services ........................................................... 27 DynamoDB ...................................................................................................................... 27 AWS Cloud9 .................................................................................................................... 28 iii AWS CloudShell User Guide Amazon EC2 .................................................................................................................... 28 S3 Glacier ........................................................................................................................ 28 AWS Elastic Beanstalk CLI ......................................................................................................... 28 Amazon ECS CLI ....................................................................................................................... 29 AWS SAM CLI ........................................................................................................................... 29 Customizing AWS CloudShell ............................................................................................................. 30 Splitting the command line display into multiple tabs ................................................................... 30 Changing font size ................................................................................................................... 30 Changing the interface theme ................................................................................................... 30 Using Safe Paste for multiline text ............................................................................................. 31 Security ............................................................................................................................................ 2 Data protection ........................................................................................................................ 32 Data encryption ............................................................................................................... 33 Identity and access management ............................................................................................... 33 Audience ......................................................................................................................... 34 Authenticating with identities ...........................................................................................