mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
fix(ec2): expand Graviton instance type metadata (#7501)
Add the missing virtual sizes in C6g, C6gn, C7g, C8g, M6g, M7g and M8g using captured AWS type metadata. Verify metadata and offerings through the Java SDK. Closes floci-io/floci#7500
This commit is contained in:
1 parent
3fdc100947
commit
71e8725a45
5 files changed
+927
-2
No files matched your search
@@ -30,6 +30,26 @@ EBS-only storage, and one network card supporting 3 interfaces and 10 IPv4 addre
|
||||
interface, following the [AWS R5 specifications](https://docs.aws.amazon.com/ec2/latest/instancetypes/mo.html).
|
||||
`DescribeInstanceTypes` and `DescribeInstanceTypeOfferings` use this same entry.
|
||||
|
||||
### Graviton instance-type metadata
|
||||
|
||||
The full catalog includes the virtual sizes of `c6g`, `c6gn`, `c7g`, `c8g`,
|
||||
`m6g`, `m7g` and `m8g`: medium, large, xlarge, 2xlarge, 4xlarge, 8xlarge,
|
||||
12xlarge and 16xlarge, plus 24xlarge and 48xlarge for C8g/M8g.
|
||||
`DescribeInstanceTypes` and the emulator's `DescribeInstanceTypeOfferings` use
|
||||
these same entries. Catalog consumers also use their ARM64 architecture and
|
||||
CPU/memory capacity for launch validation and container resource limits.
|
||||
|
||||
The values were captured from AWS `DescribeInstanceTypes` in `us-east-1` on
|
||||
2026-11-04, including each size's network-card/interface limits and each family's
|
||||
generation and encryption-in-transit flags. The capture reports C6gn as previous
|
||||
generation. All these sizes are EBS-only. See the AWS
|
||||
[compute-optimized specifications](https://docs.aws.amazon.com/ec2/latest/instancetypes/co.html)
|
||||
and [general-purpose specifications](https://docs.aws.amazon.com/ec2/latest/instancetypes/gp.html).
|
||||
|
||||
This is a bounded metadata catalog, not a live regional-availability feed.
|
||||
Offerings retain Floci's synthetic region/availability-zone behavior; a catalog
|
||||
entry does not establish that AWS offers the type in every region or zone.
|
||||
|
||||
## Standard On-Demand admission
|
||||
|
||||
Quota admission is opt-in. Set `FLOCI_SERVICES_EC2_ENFORCE_VCPU_QUOTAS=true` to
|
||||
|
||||
@@ -334,3 +334,775 @@ instanceTypes:
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 4
|
||||
|
||||
# Virtual Graviton sizes captured from EC2 DescribeInstanceTypes in us-east-1 on 2026-11-04.
|
||||
# https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstanceTypes.html
|
||||
# https://docs.aws.amazon.com/ec2/latest/instancetypes/co.html
|
||||
# https://docs.aws.amazon.com/ec2/latest/instancetypes/gp.html
|
||||
# Type metadata only: this is not a regional availability snapshot.
|
||||
- instanceType: c6g.12xlarge
|
||||
vcpu: 48
|
||||
memoryMib: 98304
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: false
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 30
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 8
|
||||
|
||||
- instanceType: c6g.16xlarge
|
||||
vcpu: 64
|
||||
memoryMib: 131072
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: false
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 50
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 15
|
||||
|
||||
- instanceType: c6g.2xlarge
|
||||
vcpu: 8
|
||||
memoryMib: 16384
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: false
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 15
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 4
|
||||
|
||||
- instanceType: c6g.4xlarge
|
||||
vcpu: 16
|
||||
memoryMib: 32768
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: false
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 30
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 8
|
||||
|
||||
- instanceType: c6g.8xlarge
|
||||
vcpu: 32
|
||||
memoryMib: 65536
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: false
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 30
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 8
|
||||
|
||||
- instanceType: c6g.large
|
||||
vcpu: 2
|
||||
memoryMib: 4096
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: false
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 10
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 3
|
||||
|
||||
- instanceType: c6g.medium
|
||||
vcpu: 1
|
||||
memoryMib: 2048
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: false
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 4
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 2
|
||||
|
||||
- instanceType: c6g.xlarge
|
||||
vcpu: 4
|
||||
memoryMib: 8192
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: false
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 15
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 4
|
||||
|
||||
- instanceType: c6gn.12xlarge
|
||||
vcpu: 48
|
||||
memoryMib: 98304
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: false
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 30
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 8
|
||||
|
||||
- instanceType: c6gn.16xlarge
|
||||
vcpu: 64
|
||||
memoryMib: 131072
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: false
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 50
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 15
|
||||
|
||||
- instanceType: c6gn.2xlarge
|
||||
vcpu: 8
|
||||
memoryMib: 16384
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: false
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 15
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 4
|
||||
|
||||
- instanceType: c6gn.4xlarge
|
||||
vcpu: 16
|
||||
memoryMib: 32768
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: false
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 30
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 8
|
||||
|
||||
- instanceType: c6gn.8xlarge
|
||||
vcpu: 32
|
||||
memoryMib: 65536
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: false
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 30
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 8
|
||||
|
||||
- instanceType: c6gn.large
|
||||
vcpu: 2
|
||||
memoryMib: 4096
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: false
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 10
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 3
|
||||
|
||||
- instanceType: c6gn.medium
|
||||
vcpu: 1
|
||||
memoryMib: 2048
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: false
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 4
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 2
|
||||
|
||||
- instanceType: c6gn.xlarge
|
||||
vcpu: 4
|
||||
memoryMib: 8192
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: false
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 15
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 4
|
||||
|
||||
- instanceType: c7g.12xlarge
|
||||
vcpu: 48
|
||||
memoryMib: 98304
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 30
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 8
|
||||
|
||||
- instanceType: c7g.16xlarge
|
||||
vcpu: 64
|
||||
memoryMib: 131072
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 50
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 15
|
||||
|
||||
- instanceType: c7g.2xlarge
|
||||
vcpu: 8
|
||||
memoryMib: 16384
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 15
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 4
|
||||
|
||||
- instanceType: c7g.4xlarge
|
||||
vcpu: 16
|
||||
memoryMib: 32768
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 30
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 8
|
||||
|
||||
- instanceType: c7g.8xlarge
|
||||
vcpu: 32
|
||||
memoryMib: 65536
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 30
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 8
|
||||
|
||||
- instanceType: c7g.large
|
||||
vcpu: 2
|
||||
memoryMib: 4096
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 10
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 3
|
||||
|
||||
- instanceType: c7g.medium
|
||||
vcpu: 1
|
||||
memoryMib: 2048
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 4
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 2
|
||||
|
||||
- instanceType: c7g.xlarge
|
||||
vcpu: 4
|
||||
memoryMib: 8192
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 15
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 4
|
||||
|
||||
- instanceType: c8g.12xlarge
|
||||
vcpu: 48
|
||||
memoryMib: 98304
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 30
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 8
|
||||
|
||||
- instanceType: c8g.16xlarge
|
||||
vcpu: 64
|
||||
memoryMib: 131072
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 50
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 15
|
||||
|
||||
- instanceType: c8g.24xlarge
|
||||
vcpu: 96
|
||||
memoryMib: 196608
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 50
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 15
|
||||
|
||||
- instanceType: c8g.2xlarge
|
||||
vcpu: 8
|
||||
memoryMib: 16384
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 15
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 4
|
||||
|
||||
- instanceType: c8g.48xlarge
|
||||
vcpu: 192
|
||||
memoryMib: 393216
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 50
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 15
|
||||
|
||||
- instanceType: c8g.4xlarge
|
||||
vcpu: 16
|
||||
memoryMib: 32768
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 30
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 8
|
||||
|
||||
- instanceType: c8g.8xlarge
|
||||
vcpu: 32
|
||||
memoryMib: 65536
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 30
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 8
|
||||
|
||||
- instanceType: c8g.large
|
||||
vcpu: 2
|
||||
memoryMib: 4096
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 10
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 3
|
||||
|
||||
- instanceType: c8g.medium
|
||||
vcpu: 1
|
||||
memoryMib: 2048
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 4
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 2
|
||||
|
||||
- instanceType: c8g.xlarge
|
||||
vcpu: 4
|
||||
memoryMib: 8192
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 15
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 4
|
||||
|
||||
- instanceType: m6g.12xlarge
|
||||
vcpu: 48
|
||||
memoryMib: 196608
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: false
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 30
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 8
|
||||
|
||||
- instanceType: m6g.16xlarge
|
||||
vcpu: 64
|
||||
memoryMib: 262144
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: false
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 50
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 15
|
||||
|
||||
- instanceType: m6g.2xlarge
|
||||
vcpu: 8
|
||||
memoryMib: 32768
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: false
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 15
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 4
|
||||
|
||||
- instanceType: m6g.4xlarge
|
||||
vcpu: 16
|
||||
memoryMib: 65536
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: false
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 30
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 8
|
||||
|
||||
- instanceType: m6g.8xlarge
|
||||
vcpu: 32
|
||||
memoryMib: 131072
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: false
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 30
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 8
|
||||
|
||||
- instanceType: m6g.medium
|
||||
vcpu: 1
|
||||
memoryMib: 4096
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: false
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 4
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 2
|
||||
|
||||
- instanceType: m6g.xlarge
|
||||
vcpu: 4
|
||||
memoryMib: 16384
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: false
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 15
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 4
|
||||
|
||||
- instanceType: m7g.12xlarge
|
||||
vcpu: 48
|
||||
memoryMib: 196608
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 30
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 8
|
||||
|
||||
- instanceType: m7g.16xlarge
|
||||
vcpu: 64
|
||||
memoryMib: 262144
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 50
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 15
|
||||
|
||||
- instanceType: m7g.2xlarge
|
||||
vcpu: 8
|
||||
memoryMib: 32768
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 15
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 4
|
||||
|
||||
- instanceType: m7g.4xlarge
|
||||
vcpu: 16
|
||||
memoryMib: 65536
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 30
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 8
|
||||
|
||||
- instanceType: m7g.8xlarge
|
||||
vcpu: 32
|
||||
memoryMib: 131072
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 30
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 8
|
||||
|
||||
- instanceType: m7g.large
|
||||
vcpu: 2
|
||||
memoryMib: 8192
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 10
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 3
|
||||
|
||||
- instanceType: m7g.medium
|
||||
vcpu: 1
|
||||
memoryMib: 4096
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 4
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 2
|
||||
|
||||
- instanceType: m7g.xlarge
|
||||
vcpu: 4
|
||||
memoryMib: 16384
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 15
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 4
|
||||
|
||||
- instanceType: m8g.12xlarge
|
||||
vcpu: 48
|
||||
memoryMib: 196608
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 30
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 8
|
||||
|
||||
- instanceType: m8g.16xlarge
|
||||
vcpu: 64
|
||||
memoryMib: 262144
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 50
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 15
|
||||
|
||||
- instanceType: m8g.24xlarge
|
||||
vcpu: 96
|
||||
memoryMib: 393216
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 50
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 15
|
||||
|
||||
- instanceType: m8g.2xlarge
|
||||
vcpu: 8
|
||||
memoryMib: 32768
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 15
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 4
|
||||
|
||||
- instanceType: m8g.48xlarge
|
||||
vcpu: 192
|
||||
memoryMib: 786432
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 50
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 15
|
||||
|
||||
- instanceType: m8g.4xlarge
|
||||
vcpu: 16
|
||||
memoryMib: 65536
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 30
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 8
|
||||
|
||||
- instanceType: m8g.8xlarge
|
||||
vcpu: 32
|
||||
memoryMib: 131072
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 30
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 8
|
||||
|
||||
- instanceType: m8g.large
|
||||
vcpu: 2
|
||||
memoryMib: 8192
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 10
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 3
|
||||
|
||||
- instanceType: m8g.medium
|
||||
vcpu: 1
|
||||
memoryMib: 4096
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 4
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 2
|
||||
|
||||
- instanceType: m8g.xlarge
|
||||
vcpu: 4
|
||||
memoryMib: 16384
|
||||
supportedArchitectures:
|
||||
- arm64
|
||||
currentGeneration: true
|
||||
encryptionInTransitSupported: true
|
||||
defaultNetworkCardIndex: 0
|
||||
ipv4AddressesPerInterface: 15
|
||||
networkCards:
|
||||
- networkCardIndex: 0
|
||||
maximumNetworkInterfaces: 4
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
package io.github.hectorvent.floci.services.ec2;
|
||||
|
||||
import io.github.hectorvent.floci.testing.AwsTestClients;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.CsvFileSource;
|
||||
import software.amazon.awssdk.regions.Region;
|
||||
import software.amazon.awssdk.services.ec2.Ec2Client;
|
||||
import software.amazon.awssdk.services.ec2.model.InstanceTypeInfo;
|
||||
import software.amazon.awssdk.services.ec2.model.InstanceTypeOffering;
|
||||
import software.amazon.awssdk.services.ec2.model.LocationType;
|
||||
import software.amazon.awssdk.services.ec2.model.NetworkCardInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import static org.hamcrest.MatcherAssert.assertThat;
|
||||
import static org.hamcrest.Matchers.contains;
|
||||
import static org.hamcrest.Matchers.containsInAnyOrder;
|
||||
import static org.hamcrest.Matchers.hasSize;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
|
||||
@QuarkusTest
|
||||
class Ec2GravitonCatalogIntegrationTest {
|
||||
|
||||
@ParameterizedTest
|
||||
@CsvFileSource(resources = "/ec2/graviton-instance-types.csv", numLinesToSkip = 1)
|
||||
void gravitonMetadataAndOfferingsMatchAwsSnapshot(String name, int vcpus, long memoryMib,
|
||||
int maxInterfaces, int ipv4PerInterface, boolean encryptionInTransit, boolean currentGeneration) {
|
||||
try (Ec2Client ec2 = AwsTestClients.create(Ec2Client.builder(), "test", Region.US_EAST_1)) {
|
||||
List<InstanceTypeInfo> types = ec2.describeInstanceTypes(r -> r.instanceTypesWithStrings(name)).instanceTypes();
|
||||
assertThat(types, hasSize(1));
|
||||
InstanceTypeInfo type = types.getFirst();
|
||||
assertEquals(name, type.instanceTypeAsString());
|
||||
assertEquals(vcpus, type.vCpuInfo().defaultVCpus());
|
||||
assertEquals(memoryMib, type.memoryInfo().sizeInMiB());
|
||||
assertThat(type.processorInfo().supportedArchitecturesAsStrings(), contains("arm64"));
|
||||
assertEquals(currentGeneration, type.currentGeneration());
|
||||
assertFalse(type.instanceStorageSupported());
|
||||
assertFalse(type.burstablePerformanceSupported());
|
||||
assertThat(type.supportedUsageClassesAsStrings(), containsInAnyOrder("on-demand", "spot"));
|
||||
assertEquals(encryptionInTransit, type.networkInfo().encryptionInTransitSupported());
|
||||
assertEquals(0, type.networkInfo().defaultNetworkCardIndex());
|
||||
assertEquals(ipv4PerInterface, type.networkInfo().ipv4AddressesPerInterface());
|
||||
assertThat(type.networkInfo().networkCards(), hasSize(1));
|
||||
NetworkCardInfo card = type.networkInfo().networkCards().getFirst();
|
||||
assertEquals(0, card.networkCardIndex());
|
||||
assertEquals(maxInterfaces, card.maximumNetworkInterfaces());
|
||||
|
||||
String zone = ec2.describeAvailabilityZones().availabilityZones().getFirst().zoneName();
|
||||
List<InstanceTypeOffering> offerings = ec2.describeInstanceTypeOfferings(r -> r
|
||||
.locationType(LocationType.AVAILABILITY_ZONE)
|
||||
.filters(f -> f.name("instance-type").values(name), f -> f.name("location").values(zone)))
|
||||
.instanceTypeOfferings();
|
||||
assertThat(offerings, hasSize(1));
|
||||
assertEquals(name, offerings.getFirst().instanceTypeAsString());
|
||||
assertEquals(zone, offerings.getFirst().location());
|
||||
assertEquals(LocationType.AVAILABILITY_ZONE, offerings.getFirst().locationType());
|
||||
}
|
||||
}
|
||||
}
|
||||
+10
-2
@@ -4,6 +4,7 @@ import io.quarkus.test.junit.QuarkusTest;
|
||||
import jakarta.inject.Inject;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.Set;
|
||||
@@ -27,7 +28,7 @@ class Ec2InstanceTypeCatalogTest {
|
||||
.map(instanceType -> instanceType.instanceType)
|
||||
.collect(Collectors.toSet());
|
||||
|
||||
assertEquals(Set.of(
|
||||
Set<String> expected = new HashSet<>(Set.of(
|
||||
"t2.nano",
|
||||
"t2.micro",
|
||||
"t2.small",
|
||||
@@ -52,7 +53,14 @@ class Ec2InstanceTypeCatalogTest {
|
||||
"m7gd.2xlarge",
|
||||
"m8gd.medium",
|
||||
"m8gd.large",
|
||||
"m8gd.2xlarge"), instanceTypes);
|
||||
"m8gd.2xlarge"));
|
||||
for (String family : List.of("c6g", "c6gn", "c7g", "c8g", "m6g", "m7g", "m8g")) {
|
||||
for (String size : List.of("medium", "large", "xlarge", "2xlarge", "4xlarge", "8xlarge", "12xlarge", "16xlarge")) {
|
||||
expected.add(family + "." + size);
|
||||
}
|
||||
}
|
||||
expected.addAll(List.of("c8g.24xlarge", "c8g.48xlarge", "m8g.24xlarge", "m8g.48xlarge"));
|
||||
assertEquals(expected, instanceTypes);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
instanceType,vcpu,memoryMib,maxNetworkInterfaces,ipv4AddressesPerInterface,encryptionInTransitSupported,currentGeneration
|
||||
# Public EC2 DescribeInstanceTypes metadata captured 2026-11-04 in us-east-1.
|
||||
# Selected virtual sizes of c6g, c6gn, c7g, c8g, m6g, m7g and m8g.
|
||||
# https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstanceTypes.html
|
||||
c6g.12xlarge,48,98304,8,30,false,true
|
||||
c6g.16xlarge,64,131072,15,50,false,true
|
||||
c6g.2xlarge,8,16384,4,15,false,true
|
||||
c6g.4xlarge,16,32768,8,30,false,true
|
||||
c6g.8xlarge,32,65536,8,30,false,true
|
||||
c6g.large,2,4096,3,10,false,true
|
||||
c6g.medium,1,2048,2,4,false,true
|
||||
c6g.xlarge,4,8192,4,15,false,true
|
||||
c6gn.12xlarge,48,98304,8,30,true,false
|
||||
c6gn.16xlarge,64,131072,15,50,true,false
|
||||
c6gn.2xlarge,8,16384,4,15,true,false
|
||||
c6gn.4xlarge,16,32768,8,30,true,false
|
||||
c6gn.8xlarge,32,65536,8,30,true,false
|
||||
c6gn.large,2,4096,3,10,true,false
|
||||
c6gn.medium,1,2048,2,4,true,false
|
||||
c6gn.xlarge,4,8192,4,15,true,false
|
||||
c7g.12xlarge,48,98304,8,30,true,true
|
||||
c7g.16xlarge,64,131072,15,50,true,true
|
||||
c7g.2xlarge,8,16384,4,15,true,true
|
||||
c7g.4xlarge,16,32768,8,30,true,true
|
||||
c7g.8xlarge,32,65536,8,30,true,true
|
||||
c7g.large,2,4096,3,10,true,true
|
||||
c7g.medium,1,2048,2,4,true,true
|
||||
c7g.xlarge,4,8192,4,15,true,true
|
||||
c8g.12xlarge,48,98304,8,30,true,true
|
||||
c8g.16xlarge,64,131072,15,50,true,true
|
||||
c8g.24xlarge,96,196608,15,50,true,true
|
||||
c8g.2xlarge,8,16384,4,15,true,true
|
||||
c8g.48xlarge,192,393216,15,50,true,true
|
||||
c8g.4xlarge,16,32768,8,30,true,true
|
||||
c8g.8xlarge,32,65536,8,30,true,true
|
||||
c8g.large,2,4096,3,10,true,true
|
||||
c8g.medium,1,2048,2,4,true,true
|
||||
c8g.xlarge,4,8192,4,15,true,true
|
||||
m6g.12xlarge,48,196608,8,30,false,true
|
||||
m6g.16xlarge,64,262144,15,50,false,true
|
||||
m6g.2xlarge,8,32768,4,15,false,true
|
||||
m6g.4xlarge,16,65536,8,30,false,true
|
||||
m6g.8xlarge,32,131072,8,30,false,true
|
||||
m6g.large,2,8192,3,10,false,true
|
||||
m6g.medium,1,4096,2,4,false,true
|
||||
m6g.xlarge,4,16384,4,15,false,true
|
||||
m7g.12xlarge,48,196608,8,30,true,true
|
||||
m7g.16xlarge,64,262144,15,50,true,true
|
||||
m7g.2xlarge,8,32768,4,15,true,true
|
||||
m7g.4xlarge,16,65536,8,30,true,true
|
||||
m7g.8xlarge,32,131072,8,30,true,true
|
||||
m7g.large,2,8192,3,10,true,true
|
||||
m7g.medium,1,4096,2,4,true,true
|
||||
m7g.xlarge,4,16384,4,15,true,true
|
||||
m8g.12xlarge,48,196608,8,30,true,true
|
||||
m8g.16xlarge,64,262144,15,50,true,true
|
||||
m8g.24xlarge,96,393216,15,50,true,true
|
||||
m8g.2xlarge,8,32768,4,15,true,true
|
||||
m8g.48xlarge,192,786432,15,50,true,true
|
||||
m8g.4xlarge,16,65536,8,30,true,true
|
||||
m8g.8xlarge,32,131072,8,30,true,true
|
||||
m8g.large,2,8192,3,10,true,true
|
||||
m8g.medium,1,4096,2,4,true,true
|
||||
m8g.xlarge,4,16384,4,15,true,true
|
||||
|
Reference in new issue
Block a user