Here’s a clear and professional README.md for your Shell_AWS_Resource_Manegment project:
A simple Bash script to automate the process of listing various AWS resources in your account, across multiple AWS services.
- Lists resources for the following AWS services:
- EC2
- RDS
- S3
- CloudFront
- VPC
- IAM
- Route53
- CloudWatch
- CloudFormation
- Lambda
- SNS
- SQS
- DynamoDB
- EBS
- AWS CLI must be installed on your system.
Install AWS CLI - AWS CLI must be configured with valid credentials.
Run:aws configure
./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.)
./aws_resource_list.sh us-east-1 ec2This will list all EC2 instances in the us-east-1 region.
| 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.
- 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.
- Anshuman Mohapatra