AWS CloudShell - Alternate of PowerShell and CLI
To work with command line script either we use AWS PowerShell or CLI and in both the cases we have to download the AWS SDK and install the same to our local machine and then create aws profile and start running the script.
But now we have AWS CloudShell which is available online and you do not need to install anything or configure anything new to run this. You can simply start using it just by login into AWS console.
Additional notes:
- Active session timeout is 20 minutes.
- You can store upto 1GB file which you can use across multiple session.
- You can customize the CloudShell interface as per your interest (like multiple tabs, split to multiple rows/columns, fount, background).
With below screenshot, I am simply running S3 service command using CloudShell. So
- First command I am fetching all available S3,
- Second command creating new S3 bucket,
- Third command again fetching available S3 bucket and this time we can see the new created bucket is available in output list.
- Fourth command to deleting the bucket.
- Fifth command again fetching available S3 bucket and this time we cannot see the bucket as it already deleted.
To upload/download file which you can use across multiple sessions. Refer below screenshot where-
- First command the list available files (no result as no file was there)
- Uploaded file from my local system (file name was MyScript.txt) using right side Action->Upload option
- Second command again to list available file and this time you can see my uploaded file.
- Download file using right side Action->Download option. Here make sure put the same file name as you had uploaded (i.e. MyScript.txt).
- Third command to delete the file.
- Fourth command again to list available file and this time you cannot see my uploaded file as file already deleted.
Customize CloudShell interface as per your interest (like multiple tabs, split to multiple rows/columns, fount, background), refer below screenshot-
Categories/Tags: CloudShell