dcloud ec2 instances get-identity

Instance 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 id

Arguments

  • <id>Required

    string

    Also accepted as --id. Constraints: /^i-[0-9a-f]{6,32}$/

Example

dcloud ec2 instances get-identity id

Generated from the API description, the same one the API checks requests against and the CLI is built from.