dcloud ec2 instances get-identityInstance identity: its role, when the secret was rotated and last used, from where
IAM ec2:DescribeInstancesRead
The secret itself is never readable through the API: it lives on the machine in /etc/ews/instance-identity (root, 0600). On the machine, `ews-instance credentials` trades it for 60-minute credentials of the instance role.
Synopsis
dcloud ec2 instances get-identity idArguments
<id>Requiredstring
Also accepted as
--id. Constraints: /^i-[0-9a-f]{6,32}$/
Example
dcloud ec2 instances get-identity idGenerated from the API description, the same one the API checks requests against and the CLI is built from.