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:
- Python 3
boto3
librarydiagram
library
- Install the required libraries:
pip install -r requirements.txt
- Set up your AWS credentials:
export AWS_ACCESS_KEY_ID=your_access_key_id
export AWS_SECRET_ACCESS_KEY=your_secret_access_key
export AWS_REGION=your_aws_region
- Run the script:
# 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.
Apache License 2.0
https://www.middlewareinventory.com/blog/creating-elb-flow-charts-using-python-boto-diagrams/