Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23218

Diagram Library - how to provide additional resource information

$
0
0

I am using Diagrams library for diagram generation. I have a .txt file that contains resource details (EC2, S3) including IP address, region, etc. I have created a logic in the python script that read this .txt file for resources and base on the values provided against EC2, s3, it creates diagram.Question: how can I change the code to reflect the resource additional info in the diagram?

I am just providing the sample code below for your reference (code file attached also). Any help would be greatly appreciated. Thanks!!

diagram.py

from diagrams import Diagramfrom diagrams.aws.compute import EC2from diagrams.aws.database import RDSfrom diagrams.aws.network import ELBwith Diagram("Web Service", show=False):    ELB("lb") >> EC2("web") >> RDS("userdb")

I explored the Diagram docs and searched in ChatGPT, but I couldn't find any solution.


Viewing all articles
Browse latest Browse all 23218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>