Skip to content

prasanth624/shell-scripts-for-aws

Repository files navigation

🌩️ shell-scripts-for-aws

Welcome to the shell-scripts-for-aws repository! This collection of shell scripts is designed to help you manage AWS resources efficiently and effectively.

πŸ“š Prerequisites

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.

πŸ› οΈ Scripts

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!

πŸš€ Usage

To get started, follow these steps:

  1. Clone the repository:

    git clone https://github.com/prasanth624/shell-scripts-for-aws.git
    cd shell-scripts-for-aws
  2. Make the scripts executable:

    chmod +x *.sh
  3. Run the desired script:

    ./your_script_name.sh

Contributing

πŸ’‘ Feel free to fork the repository and submit pull requests for any improvements or features you'd like to add!

πŸ“œ License

This project is licensed under the MIT License. See the LICENSE file for details.

Releases

No releases published

Packages

No packages published

Languages