Skip to content

Latest commit

 

History

History
112 lines (82 loc) · 2.81 KB

README.md

File metadata and controls

112 lines (82 loc) · 2.81 KB


AWS Scan Resource Automation

Scan AWS Resources using AWS CLI with automation bash script.

GNU%20Bash


Table of Contents


Overview

► This repository contain some shell script to list all resources from AWS.


Features

► List all the target groups from Loadbalancers
► List the attached target groups for status
► List DB clusters from RDS
► List DB instances from RDS
► List DB Snapshots from RDS Backup


Repository Structure

/
├── README.md
├── aws-scan-oo-resources
│   ├── get_rds-db-clusters.sh
│   ├── get_rds-db-snapshots.sh
│   ├── get_rds_db-instances.sh
│   ├── get_target_groups.sh
│   ├── get_target_healths.sh
│   └── get_target_loadbalancer.sh
└── test-script
    └── temp_get_target_healths.sh

Modules

aws-scan-oo-resources
File Summary
get_target_groups.sh ► Get the Target Group attached to Loadbalancers
get_target_healths.sh ► Get the attached of healths on Target Group
get_rds-db_instances.sh ► Get the RDS DB Instances from RDS resources
get_rds-db-clusters.sh ► Get the clusters from RDS resources
get_rds-db-snapshots.sh ► Get the RDS DB Snapshots from resources
get_target_loadbalancer.sh ► Get all Load balancers from the resources

Getting Started

Installation

  1. Clone the repository:
git clone https://github.com/mrfzy00/aws-scan-resource.git
  1. Change to the project directory:
cd 
  1. Install the dependencies:
chmod +x aws-scan-oo-resources/*.sh

Running

Example: 
./get_target_groups.sh

Output: 
Load Balancer ARN: arn:aws:elasticloadbalancing:ap-southeast-1:00000000000:loadbalancer/net/sample-nlb/000000000000000        
arn:aws:elasticloadbalancing:ap-southeast-1:257034807569:targetgroup/sample-tg-nlb/0000000000000
----------------------