Difference between revisions of "Aws ec2 describe-instances"

From wikieduonline
Jump to navigation Jump to search
Line 5: Line 5:
 
* <code>aws ec2 describe-instances | grep [[AvailabilityZone]]</code>
 
* <code>aws ec2 describe-instances | grep [[AvailabilityZone]]</code>
 
* <code>aws ec2 describe-instances | egrep "InstanceId|InstanceType|running"</code>
 
* <code>aws ec2 describe-instances | egrep "InstanceId|InstanceType|running"</code>
 
+
* <code>aws ec2 describe-instances --output text | [[grep -w]] Name</code>
aws ec2 describe-instances --output text | [[grep -w]] Name
 
  
  

Revision as of 13:14, 6 September 2021

  • aws ec2 describe-instances
  • aws ec2 describe-instances | grep InstanceType
  • aws ec2 describe-instances | grep AvailabilityZone
  • aws ec2 describe-instances | egrep "InstanceId|InstanceType|running"
  • aws ec2 describe-instances --output text | grep -w Name


Basic commands

An error occurred (AuthFailure) when calling the DescribeInstances operation: AWS was not able to validate the provided access credentials

  • aws ec2 describe-instances --profile YOUR_PROFILE

Review configuration: aws configure list

Related commands

See also

Advertising: