It will explain about:
How to get all regions for EC2 in AWS ?
How to list all EC2 Instances across all regions ?
This code will help you to get the list of all running EC2 instances across all regions in an AWS account.
This code will dynamically pick up all the aws ec2 regions. So the code will work perfectly without any modification even if a new region gets added to the AWS.
30 янв 2019