QT-DevOps / AWSIssues

Issues with AWS
Apache License 2.0
3 stars 26 forks source link

Unable to describe instance status #97

Closed vineethnnn closed 4 years ago

vineethnnn commented 4 years ago

Created a EC2 instance & executed the this command

aws ec2 describe-instance-status --instance-id i-0818bdfc819ea8731

But I'm getting this error message as

An error occurred (InvalidInstanceID.NotFound) when calling the DescribeInstanceStatus operation: The instance ID 'i-0818bdfc819ea8731' does not exist

Capture1

srmanikanta commented 4 years ago

follow these steps: 1.In aws go to iam service create a iam user with programetic access, attach admin permissions and download the accesskey and secret key file like download.csv.

  1. install aws cli Refer Here
  2. configure cli aws configure provide access key, secret key, region,and output format json. Now execute your aws commands.