This Bash script automates the process of listing various resources in an AWS account. It supports multiple AWS services and allows users to specify a region and service to retrieve resource information. π
The script currently supports the following AWS services:
- EC2 - Elastic Compute Cloud βοΈ
- RDS - Relational Database Service ποΈ
- S3 - Simple Storage Service π¦
- CloudFront - Content Delivery Network π
- VPC - Virtual Private Cloud π’
- IAM - Identity and Access Management π
- Route53 - DNS Web Service π
- CloudWatch - Monitoring and Management Service π
- CloudFormation - Infrastructure as Code Service ποΈ
- Lambda - Serverless Computing Service π₯οΈ
- SNS - Simple Notification Service π¬
- SQS - Simple Queue Service π
- DynamoDB - NoSQL Database Service ποΈ
- EBS - Elastic Block Store π
To use the script, run the following command in your terminal:
./aws_resource_list.sh <aws_region> <aws_service>
To list EC2 instances in the us-east-1
region:
./aws_resource_list.sh us-east-1 ec2
- Ensure that the AWS CLI is installed on your machine. You can install it by following the official AWS CLI installation guide. π₯
- The AWS CLI must be configured with your credentials. You can configure it using the command:
aws configure
- The script checks for the required number of arguments. If not provided, it will display usage instructions.
β οΈ - It verifies whether the AWS CLI is installed and configured before executing any commands. βοΈ
- Thank you for using this script! Feel free to contribute or suggest improvements. π