Difference between revisions of "Aws ec2 describe-instances"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
* <code>aws ec2 describe-instances | egrep "InstanceId|InstanceType|running"</code> | * <code>aws ec2 describe-instances | egrep "InstanceId|InstanceType|running"</code> | ||
===Basic commands=== | ===Basic commands=== | ||
− | *< | + | *<code>[[aws ec2]] describe-instances</code> |
− | An error occurred (AuthFailure) when calling the DescribeInstances operation: AWS was not able to validate the provided access credentials</pre> | + | An error occurred (AuthFailure) when calling the DescribeInstances operation: AWS was not able to validate the provided access credentials</pre> |
*<code>aws ec2 describe-instances [[--profile]] YOUR_PROFILE</code> | *<code>aws ec2 describe-instances [[--profile]] YOUR_PROFILE</code> |
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
- AWS EC2, Amazon EC2 API,
aws ec2, AWS::EC2
, Amazon EC2 Spot Instances, CPU credits, Instance type, EC2 limitations, 169.254.169.254, Instance metadata and user data (IMDS),InstanceType, InstanceId
, Amazon EC2 Auto Scaling, AWS EC2 Instance Connect, launch template, lifecycle, AWS Security group (SG), Amazon EC2 Recycle Bin, Amazon EC2 Mac Instances, Global View - AWS CLI,
aws
[configure
|iam
|ec2
|ecs
|eks
|s3
|rds
|sts
|cloudwatch
|cloudformation
|cloudfront
|eventbridge
|lambda
],aws configure list
,.aws/credentials
,.aws/config
,~/.aws/cli/alias
,--output [ table | json | text | XXX ]
, Aws cli environmental variables:AWS_PROFILE
,AWS_DEFAULT_REGION, AWS_REGION
,AWS_CLI_AUTO_PROMPT
,AWS_SESSION_TOKEN
,aws list all
,auto-prompt
,--version
,whoamiaws, --filters, --help
Advertising: