Code snippet to discover all EC2 instances and their security groups in all regions.
pip install awscli
pip install boto3
Configure aws with aws configure
with your AWS Access Key ID and AWS Secret Access Key.
Code snippet to discover all EC2 instances and their security groups in all regions.
PythonMIT