Welcome to the shell-scripts-for-aws repository! This collection of shell scripts is designed to help you manage AWS resources efficiently and effectively.
Before running the scripts, make sure you have the following:
-
An AWS account with the necessary permissions to access resources.
-
AWS CLI installed and configured on your machine. You can configure it using:
aws configure
-
Basic knowledge of shell scripting and command line usage.
This repository currently includes scripts that perform the following functions:
- Find Running EC2 Instances: Retrieves a list of all running EC2 instances in a specified region.
- Find Stopped EC2 Instances: Retrieves a list of all stopped EC2 instances in a specified region.
- Find Unattached EBS Volumes: Retrieves a list of all unattached EBS volumes in a specified region.
- Find Unused Elastic IPs: Retrieves a list of all unused Elastic IPs in a specified region.
- Check IAM User Status: Evaluates a list of IAM users from a file to determine if they have multi-factor authentication (MFA) devices or access keys; disables users lacking both or inactive for over 180 days.
More scripts and functionalities will be added in the future!
To get started, follow these steps:
-
Clone the repository:
git clone https://github.com/prasanth624/shell-scripts-for-aws.git cd shell-scripts-for-aws
-
Make the scripts executable:
chmod +x *.sh
-
Run the desired script:
./your_script_name.sh
💡 Feel free to fork the repository and submit pull requests for any improvements or features you'd like to add!
This project is licensed under the MIT License. See the LICENSE file for details.