Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aksarav/aws_elb_diagram
Diagram as code - Create AWS ELB Diagrams
https://github.com/aksarav/aws_elb_diagram
Last synced: 28 days ago
JSON representation
Diagram as code - Create AWS ELB Diagrams
- Host: GitHub
- URL: https://github.com/aksarav/aws_elb_diagram
- Owner: AKSarav
- License: apache-2.0
- Created: 2022-08-07T14:40:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-16T08:22:16.000Z (5 months ago)
- Last Synced: 2024-06-16T09:32:57.652Z (5 months ago)
- Language: Python
- Size: 224 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AWS ELB Diagram Generator
This is a simple script that generates a diagram of an AWS Elastic Load Balancer (ELB) and its associated instances. The script uses the `boto3` library to query the AWS API for information about the ELB and its instances. The diagram is generated using the `diagram` library.
Here is the screenshot of the diagram generated by the script:
![ELB Diagram](assets/ELBDiagram.webp)
## Requirements
- Python 3
- `boto3` library
- `diagram` library## Usage
1. Install the required libraries:
```bash
pip install -r requirements.txt
```2. Set up your AWS credentials:
```bash
export AWS_ACCESS_KEY_ID=your_access_key_id
export AWS_SECRET_ACCESS_KEY=your_secret_access_key
export AWS_REGION=your_aws_region
```3. Run the script:
```bash
# For Network Load Balancer and Application Load Balancer
python alb-diagram.py# For Classic Load Balancer
python clb-diagram.py
```The script will generate a diagram of the ELB and its associated instances and save on the current directory.
## License
Apache License 2.0## For more information - Read the blog post
https://www.middlewareinventory.com/blog/creating-elb-flow-charts-using-python-boto-diagrams/