HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/doc/awscli/examples/ec2/describe-identity-id-format.rst
**To describe the ID format for an IAM role**

The following ``describe-identity-id-format`` example describes the ID format received by instances created by the IAM role ``EC2Role`` in your AWS account. ::

    aws ec2 describe-identity-id-format \
        --principal-arn arn:aws:iam::123456789012:role/my-iam-role \
        --resource instance

The following output indicates that instances created by this role receive IDs in long ID format. ::

    {
        "Statuses": [
            {
                "Deadline": "2016-12-15T00:00:00Z",
                "Resource": "instance",
                "UseLongIds": true
            }
        ]
    }

**To describe the ID format for an IAM user**

The following ``describe-identity-id-format`` example describes the ID format received by snapshots created by the IAM user ``AdminUser`` in your AWS account. ::

    aws ec2 describe-identity-id-format \
        --principal-arn arn:aws:iam::123456789012:user/AdminUser \
        --resource snapshot

The output indicates that snapshots created by this user receive IDs in long ID format. ::

    {
        "Statuses": [
            {
                "Deadline": "2016-12-15T00:00:00Z",
                "Resource": "snapshot",
                "UseLongIds": true
            }
        ]
    }