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 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 their 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 with 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 customise 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.
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 over how does it works?
How it Works:
The complete working of AWS CloudShell goes into 3 essential steps.
- Providing command-line access: Command line access is offered to AWS resources and the tools directly through the browser by AWS CloudShell.
- 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.
- 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.
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.
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.
- Check the directory you are working on using the command PWD. (Directory : /home/cloudshell-user)
- 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.
- To view the code in the command line, enter vim file_name(vim add.py).
- Press I on the keyboard to edit the code.
You can try to edit the code to add 3 numbers.
print(“The sum is”,sum)
- 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.
- To create S3 bucket, run the mentioned command.
aws s3api create-bucket –bucket insert-unique-bucket-name-here –region us-east-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
The command line will display the following command after successfully uploading the file.
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.