How to Install Automatic Tools in AWS EC2 Machine Using Shell Scripting in Linux

How to Install Automatic Tools in AWS EC2 Machine Using Shell Scripting in Linux

Hi connection in this blog I'll automatically install tools in EC2 Machine

I hope you like it

Let's go and write our codes.

First, we will set up our ec2 machine,

go to launch instances -> give the name of your server -> choose OS image (Ubuntu)

-> choose key -> now click on Advance Details (this part is important) -> now go to the bottom of the page -> fill code in user data (let's install the tools using shell scripting)

we're going to install tree and nginx

just put your codes in user data like the below commands.

#!bin/bash

apt-get update

apt-get install nginx -y

apt-get install tree -y

touch test.txt

echo "Successfully Installed Python and NGINX in your Linux Machine"> /test.txt

now check your nginx and tree command in your linux machine.

hurray, it's working and hopes you enjoyed this method to install the tools using shell scripting in aws ec2 setup.

And thank you Shubham sir for teaching me how to use shell scripting in many ways.