Resources

We are in the age of automation, easiness, and work on hand-tips, and the cloud is doing it all for us. We are getting nourished by multiple functionalities and facilities in the upcoming days. AWS CloudShell is serving on the same ideologies. Let’s get into the details of it.

AWS CloudShell: Seamless Resource Management at No Extra Cost

AWS CloudShell is a powerful, browser-based terminal that provides direct access to AWS services and resources from within the AWS Management Console. The best part is, there’s no additional cost for using AWS CloudShell – it’s included with your AWS account. This means you can execute commands, run scripts, and manage your AWS environment seamlessly, without worrying about any extra charges. AWS CloudShell offers a convenient and cost-effective way to interact with your AWS resources and perform various tasks right from your browser, making it a valuable tool for developers, administrators, and anyone working with AWS services.

To get started with CloudShell, follow these six quick steps. First, log in to your AWS Management Console. Next, locate the CloudShell icon in the upper-right corner and click on it to access the service. Once inside, you can leverage AWS Cloud Shell commands, which are pre-configured with the AWS CLI (Command Line Interface), making it seamless to interact with your AWS resources. CloudShell AWS eliminates the need for local installations, providing you with a cloud-based environment for running commands and scripts. In essence, CloudShell AWS is a convenient and efficient way to manage your AWS infrastructure, offering an integrated CLI experience directly within the AWS Console. If you’re wondering, “What is CloudShell AWS?” – it’s your gateway to streamlined AWS management through the AWS CLI in a browser-based shell.

AWS CloudShell:

AWS CloudShell is an entirely browser-based shell. The user can browse it and explore, manage, tackle, and interact with AWS resources at no additive cost. One can excess AWS CloudShell just with the console login credentials and can explore the shell. The users can run its hands over various pre-installed tools and can be more productive.

So, using CloudShell, you can automate tasks, manage resources, develop applications using AWS SDKs, clone repositories, edit scripts, and store them for future perspectives.

Features Of AWS Cloudshell:

  • You can manage your AWS resources and play with different tools to increase productivity, and it all goes on without leaving your web browser.
  • There is no need to manage any additive credentials for the shell. One can browse the shell just by AWS Management Console.
  • Since the user gets the fully managed environment owning pre-installed and updated tools, there is no need to worry about the updation of tools.
  • CloudShell provides 1GB of storage, as per region and that is too at no extra charges. The only thing which costs is AWS resources, and one can use CloudShell with no additive cost.
  • There is no need to customize the environment every time you use CloudShell. You can store your files, scripts, data, and additive tools in a home directory using 1GB of storage.

Boost your earning potential with AWS expertise. Explore our certified AWS Courses for a high-paying career

You can deeply learn about AWS and all these new comings in AWS by exploring our well-structured courses.

Now we have an excellent basic about what AWS CloudShell is and what are features we get while dealing with it. Let’s have a look at how it works.

How it Works:

The complete working of AWS CloudShell goes into 3 essential steps.

  1. Providing command-line access: Command-line access is offered to AWS resources and tools directly through the browser by AWS CloudShell.
  2. Creation of new shell: A new shell with pre-installed and updated development tools is created by CloudShell. These tools include AWS CLI, SDKs, and other tools.
  3. Storage of data and files: Now, you can store files, scripts, and other data up to 1GB within the home directory. Stored data can be shared across sessions initiated within the same region. The notable point is that the shells get terminated once they are closed, increasing efficiency.

Build Your Career as a
AWS Solution Architect

AWS Solutions Architect Associate

Steps for getting started with AWS CloudShell:

Step 1: Log in to AWS Management Console using your previously created credentials.

Step 2: Launch AWS CloudShell by clicking on the CloudShell icon, or you can get the CloudShell option by searching “CloudShell” in the search bar.

Launching AWS CloudShell - Thinkcloudly

You will get a Welcome to AWS Cloudshell window. You can ignore it and go forward to the next steps.

Step 3: Now, you can select the region to work in from the top bar and choose a shell or use the default. (To choose a pre-installed shell, one can enter its program name at the command line prompt.)

Step 4: Upload your files to the AWS CloudShell.

Uploading Files On AWS CloudShell - Thinkcloudly

  1. Check the directory you are working on using the command PWD. (Directory : /home/cloudshell-user)
  2. Click on Action > upload files > Select file > Upload. (You may use file add.py from the Resources above.)

Step 5:  The next step comes to edit the code of your file and run it from the command line.

  1. To view the code in the command line, enter vim file_name(vim add.py).
  2. Press I on the keyboard to edit the code.

You can try to edit the code to add 3 numbers.

import sys

x=int(sys.argv[1])

y=int(sys.argv[2])

z=int(sys.argv[3])

sum=x+y+z

print(“The sum is”,sum)

  1. Press Esc to exit editing mode and run command wq to save the file.

Step 6: You can add the files as an object in the Amazon S3 bucket by using AWS CLI.

  1. To create an S3 bucket, run the mentioned command.

aws s3api create-bucket –bucket insert-unique-bucket-name-here –region us-east-1

  1. Add a file in the bucket using the mentioned command as an object.

aws s3api put-object –bucket insert-unique-bucket-name-here –key add_prog –body

add.py

The command line will display the following command after successfully uploading the file.

{

“ETag”: “”ab123c1:w:wad4a567d8bfd9a1234ebeea56″”

}

Now you know about the steps to follow to work with AWS CloudShell. You can reach us anytime to get much more details on it or with your queries. Contact us!

Key points to take home:

  • AWS CloudShell is an entirely browser-based shell.
  • Using CloudShell, you can automate tasks, manage resources, develop applications using AWS SDKs, clone repositories, edit scripts, and store them for future perspectives.
  • On browser excessing, no need for new credentials, no-cost storage, security, and efficiency are some of the prime features of AWS CloudShell.
  • The complete working of AWS CloudShell goes into 3 essential steps:
  • a. Providing command-line access.
    b. Creation of a new shell.
    c. Storage of data and files.

You can access AWS CloudShell by following some quick steps mentioned above.

Dealing with such exciting tools of AWS is mind blossoming. You can learn more about AWS by excessing our well-structured courses.