What is Bash Script?
Bash Script is a plain text file that contains the commands used in a command line.
Creating a Bash Script
Step 1: Creating an HTML page.
Step 2: Creating a bucket in S3.
Step 3: Creating an IAM Role.
In the above screen, the role which has been checked is a newly created role.
Step 4: Creating an EC2 instance
Bash scripts are added in an Advanced Details.
The above screen shows that we created a new security group whose name is WebServer.
The above screen shows the bash script.
Step 5: Test the Bash Script
We conclude that copying the data from S3 to EC2 becomes easier by using Bash scripts.