---
id: "aws_ec2_instance_type"
kind: "datatype"
status: "draft"
is_pii: false
name: "Amazon EC2 instance type"
regexp: "^[a-z][a-z0-9-]*\\d[a-z0-9-]*\\.(?:nano|micro|small|medium|large|\\d{0,3}xlarge|metal(?:-\\d{1,3}xl)?)$"
categories: ["software"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/aws_ec2_instance_type"
---

# Amazon EC2 instance type (`aws_ec2_instance_type`)

> **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.

Type of a virtual server of Amazon Elastic Compute Cloud (EC2): the instance family, made of a series (t, m, c, r, inf, mac), a generation number and option letters (t2, m5, c5n, r6g, c7gn), then a dot and the size (nano, micro, small, medium, large, xlarge, 2xlarge and larger multiples, or metal for bare metal): t2.micro, m4.large, c5.2xlarge. Cost and usage reports, reserved instance tables and inventory exports give it per instance. The instance itself has an ID (aws_ec2_instance_id).

- Personal data (PII): no
- Categories: Software development (software)
- Countries: global
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^[a-z][a-z0-9-]*\d[a-z0-9-]*\.(?:nano|micro|small|medium|large|\d{0,3}xlarge|metal(?:-\d{1,3}xl)?)$
```

## Examples

- `t2.micro`
- `m4.large`
- `c5.2xlarge`
- `c7gn.xlarge` — example of the AWS documentation on instance type names
- `m7i-flex.large` — a flex instance
- `m4-large` (invalid example) — Hyphen instead of the dot

## Metacrafter rules

2 rules: 1 match the field name, 1 match values.

- `awsec2instancetypebyname` (field, `common/software.yaml`)
- `awsec2instancetypevalue` (data, `common/software.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- ru: Тип инстанса Amazon EC2

## Sources

- doc: <https://docs.aws.amazon.com/ec2/latest/instancetypes/instance-type-names.html>

## Quality

Score 90/100. Missing: mapping (Wikidata, Schema.org, ...).

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