Difference between revisions of "Aws ec2 describe-instances"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
* https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html
 
* https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html
  
*<code>[[aws ec2]] describe-instances</code>
+
* <code>[[aws ec2]] describe-instances</code>
*<code>aws ec2 describe-instances | grep [[InstanceType]]</code>
+
* <code>aws ec2 describe-instances | grep [[InstanceType]]</code>
*<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>
 
===Basic commands===
 
===Basic commands===
 
*<pre>[[aws ec2]] describe-instances
 
*<pre>[[aws ec2]] describe-instances

Revision as of 13:01, 23 August 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"

Basic commands

  • [[aws ec2]] describe-instances

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: