Aws

Hi, any command to find running instance and snapshot in all regions.
  • post-author-pic
    Broadus P
    11-26-2018

    Here is an example for you, NOTE: This has not been used in a Production environment, it is only to be served as an example.

    for region in $(aws ec2 describe-regions --query "Regions[*].[RegionName]" --output text); do aws ec2 describe-instances --region "$region"; done


    Note from this you will retrieve data from empty regions as well


  • post-author-pic
    Rajapandian A
    11-27-2018

    thanks bro



Looking For Team Training?

Learn More