When I run
aws ec2 describe-instance-status --instance-ids i-XXXXXX
for any of my instances, I get:
An error occurred (InvalidInstanceID.Malformed) when calling the
DescribeInstanceStatus operation: Invalid id: “i-XXXXXXXX”
Instance ID exists, I copied it out of the AWS web console. Region settings set in aws/config and it is correct. I try run command with region param, but same error occurs.
aws ec2 describe-instance-status --region eu-north-1 --instance-ids i-XXXXXX
When I run command without --instance-ids
option, I get my instances and all works fine.
aws ec2 describe-instance-status
When I run another commands with --instance-ids
option(stop-instances
,start-instances
) all works fine too.
The policy of IAM user is – “AmazonEC2FullAccess”.
3