---
id: "aws_ec2_instance_id"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["identifiers"]
langs: ["common"]
quality: 70
url: "https://registry.apicrafter.io/datatype/aws_ec2_instance_id"
---

# Amazon EC2 instance ID (`aws_ec2_instance_id`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Resource ID of an Amazon EC2 instance: i- followed by 17 characters, or by 8 characters for IDs created before the longer format. The examples in the AWS documentation use lowercase hexadecimal digits, as does the regexp.

- Personal data (PII): no
- Categories: Universal unique identifiers (identifiers)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^i-(?:[0-9a-f]{8}|[0-9a-f]{17})$
```

## Examples

- `i-abc` (invalid example) — Too short

## Supported by tools

- `pywhat`

## Sources

- other: <https://aws.amazon.com/blogs/compute/longer-resource-ids-in-2018-for-amazon-ec2-amazon-ebs-and-amazon-vpc>
- doc: <https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyIdFormat.html>

## Quality

Score 70/100. Missing: examples, mapping (Wikidata, Schema.org, ...), translation.

JSON: <https://registry.apicrafter.io/api/v1/datatypes/aws_ec2_instance_id.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/identifiers/aws_ec2_instance_id.yaml>
