Difference between revisions of "Aws ec2 describe-instances"

From wikieduonline
Jump to navigation Jump to search
Line 6: Line 6:
 
* <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>
+
* <code>aws ec2 describe-instances | egrep "[[InstanceId]]|InstanceType|running"</code>
 
* <code>aws ec2 describe-instances | [[grep -A1]] '"Key": "Name"'</code>
 
* <code>aws ec2 describe-instances | [[grep -A1]] '"Key": "Name"'</code>
 
* <code>aws ec2 describe-instances --output text | [[egrep -w]] "Name|PLACEMENT"</code>
 
* <code>aws ec2 describe-instances --output text | [[egrep -w]] "Name|PLACEMENT"</code>

Revision as of 13:33, 22 February 2022

Basic commands

aws ec2 describe-instances
An error occurred (AuthFailure) when calling the DescribeInstances operation: AWS was not able to validate the provided access credential
Solution: Review configuration with aws configure list
  • aws ec2 describe-instances --profile YOUR_PROFILE

Related commands

See also

Advertising: