Difference between revisions of "Aws-ec2-describe-instances-all-regions"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
  
  for region in $([[aws ec2 describe-regions]] --query Regions[*].[RegionName] --output text); do
+
  for region in `aws ec2 describe-regions --region us-east-1 --output text | cut -f4; do
 
       [[echo -e]] "\nListing Instances in region:'$region'..."
 
       [[echo -e]] "\nListing Instances in region:'$region'..."
 
       [[aws ec2 describe-instances]] --region $region
 
       [[aws ec2 describe-instances]] --region $region
Line 7: Line 7:
  
 
== Related ==  
 
== Related ==  
 +
* aws ec2 describe-regions]] --query Regions[*].[RegionName] --output text
 
* <code>[[suaws]]</code>
 
* <code>[[suaws]]</code>
  

Revision as of 18:15, 28 January 2022

Advertising: