Itβs best and safest to use IAM roles. There you can set certain rights to this instance and access to it in your account.
Depending on which version of awscli you are using, you can use instance descriptions in several ways.
Like this:
ec2din -O your-key -W your-secret-key
There is also a big difference when you install awscli with pip installation or from pkg, such as the debug debug package.
ec2din - short command for ec2-describe-instance
Other examples here: ec2-describe instances
Sincerely.
Peycho dimitrov
source share