Linux and Shell Scripting

How does the Shell Script work?

It will connect with AWS Cloud account and will list the Active Resources on the AWS account, helps a manager.

A Shell Script will be created, which when executed will need arguments from the user : Region and the service

Common Shell Scripting Automation : A Beginner friendly Shell Scripting project, implementing security best practices and shell scripting best practices.

ex : aws_resource_list.sh us-east-1 ec2

# it will list down all the running ec2 instances in that region

Installing AWS CLI

sudo apt install unzip

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"

unzip awscliv2.zip

sudo ./aws/install

Configuring AWS CLI :

Go to AWS account > Security Credentials > Access keys

Click on Create Access keys > Command line Interface, now the Secret access keys will appear that can be configured on our terminal

Enter Command > aws configure , copy the access key and secret access keys. Now you can run the shell script with the given arguments and get the info.

Listing all the s3 buckets in the region

Listing all the EC2 Instances in the region

This script fetches details of EC2 instances, S3 buckets, and RDS databases, providing a quick overview of active resources. It was a great hands-on experience that improved my AWS CLI skills and reinforced the importance of automation in cloud management.

Second Project space < Adding Soon >