Skip to content

Bash script to automate the process of listing various AWS resources in your account, across multiple AWS services.

Notifications You must be signed in to change notification settings

Anshuman-git-code/Shell_AWS_Resource_Manegment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Here’s a clear and professional README.md for your Shell_AWS_Resource_Manegment project:


Shell AWS Resource Management

A simple Bash script to automate the process of listing various AWS resources in your account, across multiple AWS services.

Features

  • Lists resources for the following AWS services:
    • EC2
    • RDS
    • S3
    • CloudFront
    • VPC
    • IAM
    • Route53
    • CloudWatch
    • CloudFormation
    • Lambda
    • SNS
    • SQS
    • DynamoDB
    • EBS

Prerequisites

  • AWS CLI must be installed on your system.
    Install AWS CLI
  • AWS CLI must be configured with valid credentials.
    Run:
    aws configure

Usage

./aws_resource_list.sh <aws_region> <aws_service>
  • <aws_region>: The AWS region (e.g., us-east-1)
  • <aws_service>: The AWS service to list resources for (e.g., ec2, s3, rds, etc.)

Example

./aws_resource_list.sh us-east-1 ec2

This will list all EC2 instances in the us-east-1 region.

Supported Services and Arguments

Service Name Argument
EC2 ec2
RDS rds
S3 s3
CloudFront cloudfront
VPC vpc
IAM iam
Route53 route53
CloudWatch cloudwatch
CloudFormation cloudformation
Lambda lambda
SNS sns
SQS sqs
DynamoDB dynamodb
EBS ebs

Note: The argument for each service is case-insensitive, but it’s best to use lowercase.

Error Handling

  • The script checks if the AWS CLI is installed and configured.
  • It validates the number of arguments.
  • It provides helpful error messages for invalid input or missing dependencies.

Author

  • Anshuman Mohapatra

About

Bash script to automate the process of listing various AWS resources in your account, across multiple AWS services.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages