aws ec2 describe-id-format
Describes the ID format settings for your resources on a per-Region basis, for example, to view which resource types are enabled for longer IDs. AWS CLI reference
2 examples 1 option Its page in the AWS CLI reference
Examples
Example 1: To describe the ID format of a resource
The following describe-id-format example describes the ID format for security groups.
aws ec2 describe-id-format --resource security-groupIdentify--resourceThe type of resource: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gatewayIn the following example output, the Deadline value indicates that the deadline for this resource type to permanently switch from the short ID format to the long ID format expired at 00:00 UTC on August 15, 2018.
Its output
{
"Statuses": [
{
"Deadline": "2018-08-15T00:00:00.000Z",
"Resource": "security-group",
"UseLongIds": true
}
]
}For more information, see Manage your Amazon EC2 resources in the Amazon EC2 User Guide.
Example 2: To describe the ID format for all resources
The following describe-id-format example describes the ID format for all resource types. All resource types that supported the short ID format were switched to use the long ID format.
aws ec2 describe-id-formatIdentifyIts output
{
"Statuses": [
{
"Deadline": "2016-12-15T00:00:00.000Z",
"Resource": "instance",
"UseLongIds": true
},
{
"Deadline": "2018-08-15T00:00:00.000Z",
"Resource": "network-interface",
"UseLongIds": true
},
{
"Deadline": "2018-08-15T00:00:00.000Z",
"Resource": "security-group",
"UseLongIds": true
},
{
"Deadline": "2016-12-15T00:00:00.000Z",
"Resource": "snapshot",
"UseLongIds": true
},
{
"Deadline": "2016-12-15T00:00:00.000Z",
"Resource": "volume",
"UseLongIds": true
}
]
}For more information, see Manage your Amazon EC2 resources in the Amazon EC2 User Guide.
Options
--resourceThe type of resource: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway