From 8349e690ca7ea59ef3325ece00ac01b8061ae621 Mon Sep 17 00:00:00 2001 From: luiseterc Date: Tue, 17 Nov 2026 19:39:24 +0100 Subject: [PATCH] feat(ec2): add AMD and Intel instance metadata (#8752) DescribeInstanceTypes now knows 61 virtual sizes of M7a, M8a, M7i, M8i, C7a and C7i, captured in us-east-1 on 2026-11-17: their vCPUs, memory, x86_64 architecture, AMD or Intel manufacturer and network limits, 24xlarge and 48xlarge included. One integration test checks both the Graviton and the x86 captures through the API, and the catalog inventory takes its expected names from those captures. Closes #8755 --- docs/services/ec2.md | 14 + .../resources/ec2/instance-type-catalog.yaml | 795 ++++++++++++++++++ ...> Ec2InstanceMetadataIntegrationTest.java} | 12 +- .../ec2/Ec2InstanceTypeCatalogTest.java | 17 +- .../resources/ec2/graviton-instance-types.csv | 122 +-- src/test/resources/ec2/x86-instance-types.csv | 63 ++ 6 files changed, 952 insertions(+), 71 deletions(-) rename src/test/java/io/floci/aws/services/ec2/{Ec2GravitonCatalogIntegrationTest.java => Ec2InstanceMetadataIntegrationTest.java} (87%) create mode 100644 src/test/resources/ec2/x86-instance-types.csv diff --git a/docs/services/ec2.md b/docs/services/ec2.md index d06cabf185..9109156c80 100644 --- a/docs/services/ec2.md +++ b/docs/services/ec2.md @@ -85,6 +85,20 @@ The catalog stores these values explicitly; architecture alone cannot distinguish Intel from AMD. See the AWS [ProcessorInfo API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ProcessorInfo.html). +### AMD and Intel instance-type metadata + +The catalog includes virtual sizes of M7a, M8a, M7i, M8i, C7a and C7i, +including 24xlarge and 48xlarge. CPU, memory, x86_64 architecture, AMD/Intel +manufacturer and network metadata were captured from AWS `DescribeInstanceTypes` +in us-east-1 on 2026-11-17. The AWS SDK regression fixture is +`src/test/resources/ec2/x86-instance-types.csv`. Only sizes present in that +capture are included; for example, there is no `m7i.medium`. + +These entries support architecture-compatible AMI selection and the existing +synthetic offerings. They do not establish vendor-specific hardware performance, +real AWS capacity or regional availability. The Docker host supplies actual CPU +execution; a catalog entry does not turn an ARM guest into an x86 guest. + ### Graviton instance-type metadata The full catalog includes the virtual sizes of `c6g`, `c6gn`, `c7g`, `c8g`, diff --git a/src/main/resources/ec2/instance-type-catalog.yaml b/src/main/resources/ec2/instance-type-catalog.yaml index fdcd53eb6e..ace7f10d79 100644 --- a/src/main/resources/ec2/instance-type-catalog.yaml +++ b/src/main/resources/ec2/instance-type-catalog.yaml @@ -1206,3 +1206,798 @@ instanceTypes: networkCards: - networkCardIndex: 0 maximumNetworkInterfaces: 4 + +# AMD and Intel metadata: EC2 DescribeInstanceTypes, us-east-1, 2026-11-17. + - instanceType: c7a.12xlarge + processorManufacturer: AMD + vcpu: 48 + memoryMib: 98304 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 30 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 8 + - instanceType: c7a.16xlarge + processorManufacturer: AMD + vcpu: 64 + memoryMib: 131072 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 50 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 15 + - instanceType: c7a.24xlarge + processorManufacturer: AMD + vcpu: 96 + memoryMib: 196608 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 50 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 15 + - instanceType: c7a.2xlarge + processorManufacturer: AMD + vcpu: 8 + memoryMib: 16384 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 15 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 4 + - instanceType: c7a.32xlarge + processorManufacturer: AMD + vcpu: 128 + memoryMib: 262144 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 50 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 15 + - instanceType: c7a.48xlarge + processorManufacturer: AMD + vcpu: 192 + memoryMib: 393216 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 50 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 15 + - instanceType: c7a.4xlarge + processorManufacturer: AMD + vcpu: 16 + memoryMib: 32768 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 30 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 8 + - instanceType: c7a.8xlarge + processorManufacturer: AMD + vcpu: 32 + memoryMib: 65536 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 30 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 8 + - instanceType: c7a.large + processorManufacturer: AMD + vcpu: 2 + memoryMib: 4096 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 10 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 3 + - instanceType: c7a.medium + processorManufacturer: AMD + vcpu: 1 + memoryMib: 2048 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 4 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 2 + - instanceType: c7a.xlarge + processorManufacturer: AMD + vcpu: 4 + memoryMib: 8192 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 15 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 4 + - instanceType: c7i.12xlarge + processorManufacturer: Intel + vcpu: 48 + memoryMib: 98304 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 30 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 8 + - instanceType: c7i.16xlarge + processorManufacturer: Intel + vcpu: 64 + memoryMib: 131072 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 50 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 15 + - instanceType: c7i.24xlarge + processorManufacturer: Intel + vcpu: 96 + memoryMib: 196608 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 50 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 15 + - instanceType: c7i.2xlarge + processorManufacturer: Intel + vcpu: 8 + memoryMib: 16384 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 15 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 4 + - instanceType: c7i.48xlarge + processorManufacturer: Intel + vcpu: 192 + memoryMib: 393216 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 50 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 15 + - instanceType: c7i.4xlarge + processorManufacturer: Intel + vcpu: 16 + memoryMib: 32768 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 30 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 8 + - instanceType: c7i.8xlarge + processorManufacturer: Intel + vcpu: 32 + memoryMib: 65536 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 30 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 8 + - instanceType: c7i.large + processorManufacturer: Intel + vcpu: 2 + memoryMib: 4096 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 10 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 3 + - instanceType: c7i.xlarge + processorManufacturer: Intel + vcpu: 4 + memoryMib: 8192 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 15 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 4 + - instanceType: m7a.12xlarge + processorManufacturer: AMD + vcpu: 48 + memoryMib: 196608 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 30 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 8 + - instanceType: m7a.16xlarge + processorManufacturer: AMD + vcpu: 64 + memoryMib: 262144 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 50 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 15 + - instanceType: m7a.24xlarge + processorManufacturer: AMD + vcpu: 96 + memoryMib: 393216 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 50 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 15 + - instanceType: m7a.2xlarge + processorManufacturer: AMD + vcpu: 8 + memoryMib: 32768 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 15 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 4 + - instanceType: m7a.32xlarge + processorManufacturer: AMD + vcpu: 128 + memoryMib: 524288 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 50 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 15 + - instanceType: m7a.48xlarge + processorManufacturer: AMD + vcpu: 192 + memoryMib: 786432 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 50 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 15 + - instanceType: m7a.4xlarge + processorManufacturer: AMD + vcpu: 16 + memoryMib: 65536 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 30 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 8 + - instanceType: m7a.8xlarge + processorManufacturer: AMD + vcpu: 32 + memoryMib: 131072 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 30 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 8 + - instanceType: m7a.large + processorManufacturer: AMD + vcpu: 2 + memoryMib: 8192 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 10 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 3 + - instanceType: m7a.medium + processorManufacturer: AMD + vcpu: 1 + memoryMib: 4096 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 4 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 2 + - instanceType: m7a.xlarge + processorManufacturer: AMD + vcpu: 4 + memoryMib: 16384 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 15 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 4 + - instanceType: m7i.12xlarge + processorManufacturer: Intel + vcpu: 48 + memoryMib: 196608 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 30 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 8 + - instanceType: m7i.16xlarge + processorManufacturer: Intel + vcpu: 64 + memoryMib: 262144 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 50 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 15 + - instanceType: m7i.24xlarge + processorManufacturer: Intel + vcpu: 96 + memoryMib: 393216 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 50 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 15 + - instanceType: m7i.2xlarge + processorManufacturer: Intel + vcpu: 8 + memoryMib: 32768 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 15 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 4 + - instanceType: m7i.48xlarge + processorManufacturer: Intel + vcpu: 192 + memoryMib: 786432 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 50 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 15 + - instanceType: m7i.4xlarge + processorManufacturer: Intel + vcpu: 16 + memoryMib: 65536 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 30 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 8 + - instanceType: m7i.8xlarge + processorManufacturer: Intel + vcpu: 32 + memoryMib: 131072 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 30 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 8 + - instanceType: m7i.large + processorManufacturer: Intel + vcpu: 2 + memoryMib: 8192 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 10 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 3 + - instanceType: m7i.xlarge + processorManufacturer: Intel + vcpu: 4 + memoryMib: 16384 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 15 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 4 + - instanceType: m8a.12xlarge + processorManufacturer: AMD + vcpu: 48 + memoryMib: 196608 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 64 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 12 + - instanceType: m8a.16xlarge + processorManufacturer: AMD + vcpu: 64 + memoryMib: 262144 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 64 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 16 + - instanceType: m8a.24xlarge + processorManufacturer: AMD + vcpu: 96 + memoryMib: 393216 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 64 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 16 + - instanceType: m8a.2xlarge + processorManufacturer: AMD + vcpu: 8 + memoryMib: 32768 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 40 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 4 + - instanceType: m8a.48xlarge + processorManufacturer: AMD + vcpu: 192 + memoryMib: 786432 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 64 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 24 + - instanceType: m8a.4xlarge + processorManufacturer: AMD + vcpu: 16 + memoryMib: 65536 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 40 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 8 + - instanceType: m8a.8xlarge + processorManufacturer: AMD + vcpu: 32 + memoryMib: 131072 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 40 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 10 + - instanceType: m8a.large + processorManufacturer: AMD + vcpu: 2 + memoryMib: 8192 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 20 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 3 + - instanceType: m8a.medium + processorManufacturer: AMD + vcpu: 1 + memoryMib: 4096 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 4 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 2 + - instanceType: m8a.xlarge + processorManufacturer: AMD + vcpu: 4 + memoryMib: 16384 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 20 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 4 + - instanceType: m8i.12xlarge + processorManufacturer: Intel + vcpu: 48 + memoryMib: 196608 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 50 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 12 + - instanceType: m8i.16xlarge + processorManufacturer: Intel + vcpu: 64 + memoryMib: 262144 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 64 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 16 + - instanceType: m8i.24xlarge + processorManufacturer: Intel + vcpu: 96 + memoryMib: 393216 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 64 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 16 + - instanceType: m8i.2xlarge + processorManufacturer: Intel + vcpu: 8 + memoryMib: 32768 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 30 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 4 + - instanceType: m8i.32xlarge + processorManufacturer: Intel + vcpu: 128 + memoryMib: 524288 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 64 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 24 + - instanceType: m8i.48xlarge + processorManufacturer: Intel + vcpu: 192 + memoryMib: 786432 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 64 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 24 + - instanceType: m8i.4xlarge + processorManufacturer: Intel + vcpu: 16 + memoryMib: 65536 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 50 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 8 + - instanceType: m8i.8xlarge + processorManufacturer: Intel + vcpu: 32 + memoryMib: 131072 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 50 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 10 + - instanceType: m8i.96xlarge + processorManufacturer: Intel + vcpu: 384 + memoryMib: 1572864 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 64 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 24 + - instanceType: m8i.large + processorManufacturer: Intel + vcpu: 2 + memoryMib: 8192 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 20 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 3 + - instanceType: m8i.xlarge + processorManufacturer: Intel + vcpu: 4 + memoryMib: 16384 + supportedArchitectures: + - x86_64 + currentGeneration: true + encryptionInTransitSupported: true + defaultNetworkCardIndex: 0 + ipv4AddressesPerInterface: 30 + networkCards: + - networkCardIndex: 0 + maximumNetworkInterfaces: 4 diff --git a/src/test/java/io/floci/aws/services/ec2/Ec2GravitonCatalogIntegrationTest.java b/src/test/java/io/floci/aws/services/ec2/Ec2InstanceMetadataIntegrationTest.java similarity index 87% rename from src/test/java/io/floci/aws/services/ec2/Ec2GravitonCatalogIntegrationTest.java rename to src/test/java/io/floci/aws/services/ec2/Ec2InstanceMetadataIntegrationTest.java index 5d9ff47e8f..84d4f3a45b 100644 --- a/src/test/java/io/floci/aws/services/ec2/Ec2GravitonCatalogIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/ec2/Ec2InstanceMetadataIntegrationTest.java @@ -21,12 +21,13 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; @QuarkusTest -class Ec2GravitonCatalogIntegrationTest { +class Ec2InstanceMetadataIntegrationTest { @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) { + @CsvFileSource(resources = {"/ec2/graviton-instance-types.csv", "/ec2/x86-instance-types.csv"}, numLinesToSkip = 1) + void metadataAndOfferingsMatchAwsSnapshot(String name, int vcpus, long memoryMib, + int maxInterfaces, int ipv4PerInterface, boolean encryptionInTransit, boolean currentGeneration, + String architecture, String manufacturer) { try (Ec2Client ec2 = AwsTestClients.create(Ec2Client.builder(), "test", Region.US_EAST_1)) { List types = ec2.describeInstanceTypes(r -> r.instanceTypesWithStrings(name)).instanceTypes(); assertThat(types, hasSize(1)); @@ -34,7 +35,8 @@ class Ec2GravitonCatalogIntegrationTest { assertEquals(name, type.instanceTypeAsString()); assertEquals(vcpus, type.vCpuInfo().defaultVCpus()); assertEquals(memoryMib, type.memoryInfo().sizeInMiB()); - assertThat(type.processorInfo().supportedArchitecturesAsStrings(), contains("arm64")); + assertThat(type.processorInfo().supportedArchitecturesAsStrings(), contains(architecture)); + assertEquals(manufacturer, type.processorInfo().manufacturer()); assertEquals(currentGeneration, type.currentGeneration()); assertFalse(type.instanceStorageSupported()); assertFalse(type.burstablePerformanceSupported()); diff --git a/src/test/java/io/floci/aws/services/ec2/Ec2InstanceTypeCatalogTest.java b/src/test/java/io/floci/aws/services/ec2/Ec2InstanceTypeCatalogTest.java index b1e844f3dd..a526b84479 100644 --- a/src/test/java/io/floci/aws/services/ec2/Ec2InstanceTypeCatalogTest.java +++ b/src/test/java/io/floci/aws/services/ec2/Ec2InstanceTypeCatalogTest.java @@ -4,6 +4,10 @@ import io.quarkus.test.junit.QuarkusTest; import jakarta.inject.Inject; import org.junit.jupiter.api.Test; +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStreamReader; +import java.nio.charset.StandardCharsets; import java.util.HashSet; import java.util.List; import java.util.Optional; @@ -23,7 +27,7 @@ class Ec2InstanceTypeCatalogTest { Ec2InstanceTypeCatalog instanceTypeCatalog; @Test - void catalogContainsCurrentTypesAndLargeGravitonTypes() { + void catalogContainsCurrentTypesAndCapturedInstanceTypes() throws IOException { Set instanceTypes = instanceTypeCatalog.instanceTypes().stream() .map(instanceType -> instanceType.instanceType) .collect(Collectors.toSet()); @@ -55,12 +59,15 @@ class Ec2InstanceTypeCatalogTest { "m8gd.medium", "m8gd.large", "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); + for (String resource : List.of("/ec2/graviton-instance-types.csv", "/ec2/x86-instance-types.csv")) { + try (BufferedReader rows = new BufferedReader(new InputStreamReader( + getClass().getResourceAsStream(resource), StandardCharsets.UTF_8))) { + rows.lines().skip(1) + .filter(row -> !row.isBlank() && !row.startsWith("#")) + .map(row -> row.substring(0, row.indexOf(','))) + .forEach(expected::add); } } - expected.addAll(List.of("c8g.24xlarge", "c8g.48xlarge", "m8g.24xlarge", "m8g.48xlarge")); assertEquals(expected, instanceTypes); } diff --git a/src/test/resources/ec2/graviton-instance-types.csv b/src/test/resources/ec2/graviton-instance-types.csv index d8ebad9af6..fda9fbc28f 100644 --- a/src/test/resources/ec2/graviton-instance-types.csv +++ b/src/test/resources/ec2/graviton-instance-types.csv @@ -1,64 +1,64 @@ -instanceType,vcpu,memoryMib,maxNetworkInterfaces,ipv4AddressesPerInterface,encryptionInTransitSupported,currentGeneration +instanceType,vcpu,memoryMib,maxNetworkInterfaces,ipv4AddressesPerInterface,encryptionInTransitSupported,currentGeneration,architecture,manufacturer # 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 +c6g.12xlarge,48,98304,8,30,false,true,arm64,AWS +c6g.16xlarge,64,131072,15,50,false,true,arm64,AWS +c6g.2xlarge,8,16384,4,15,false,true,arm64,AWS +c6g.4xlarge,16,32768,8,30,false,true,arm64,AWS +c6g.8xlarge,32,65536,8,30,false,true,arm64,AWS +c6g.large,2,4096,3,10,false,true,arm64,AWS +c6g.medium,1,2048,2,4,false,true,arm64,AWS +c6g.xlarge,4,8192,4,15,false,true,arm64,AWS +c6gn.12xlarge,48,98304,8,30,true,false,arm64,AWS +c6gn.16xlarge,64,131072,15,50,true,false,arm64,AWS +c6gn.2xlarge,8,16384,4,15,true,false,arm64,AWS +c6gn.4xlarge,16,32768,8,30,true,false,arm64,AWS +c6gn.8xlarge,32,65536,8,30,true,false,arm64,AWS +c6gn.large,2,4096,3,10,true,false,arm64,AWS +c6gn.medium,1,2048,2,4,true,false,arm64,AWS +c6gn.xlarge,4,8192,4,15,true,false,arm64,AWS +c7g.12xlarge,48,98304,8,30,true,true,arm64,AWS +c7g.16xlarge,64,131072,15,50,true,true,arm64,AWS +c7g.2xlarge,8,16384,4,15,true,true,arm64,AWS +c7g.4xlarge,16,32768,8,30,true,true,arm64,AWS +c7g.8xlarge,32,65536,8,30,true,true,arm64,AWS +c7g.large,2,4096,3,10,true,true,arm64,AWS +c7g.medium,1,2048,2,4,true,true,arm64,AWS +c7g.xlarge,4,8192,4,15,true,true,arm64,AWS +c8g.12xlarge,48,98304,8,30,true,true,arm64,AWS +c8g.16xlarge,64,131072,15,50,true,true,arm64,AWS +c8g.24xlarge,96,196608,15,50,true,true,arm64,AWS +c8g.2xlarge,8,16384,4,15,true,true,arm64,AWS +c8g.48xlarge,192,393216,15,50,true,true,arm64,AWS +c8g.4xlarge,16,32768,8,30,true,true,arm64,AWS +c8g.8xlarge,32,65536,8,30,true,true,arm64,AWS +c8g.large,2,4096,3,10,true,true,arm64,AWS +c8g.medium,1,2048,2,4,true,true,arm64,AWS +c8g.xlarge,4,8192,4,15,true,true,arm64,AWS +m6g.12xlarge,48,196608,8,30,false,true,arm64,AWS +m6g.16xlarge,64,262144,15,50,false,true,arm64,AWS +m6g.2xlarge,8,32768,4,15,false,true,arm64,AWS +m6g.4xlarge,16,65536,8,30,false,true,arm64,AWS +m6g.8xlarge,32,131072,8,30,false,true,arm64,AWS +m6g.large,2,8192,3,10,false,true,arm64,AWS +m6g.medium,1,4096,2,4,false,true,arm64,AWS +m6g.xlarge,4,16384,4,15,false,true,arm64,AWS +m7g.12xlarge,48,196608,8,30,true,true,arm64,AWS +m7g.16xlarge,64,262144,15,50,true,true,arm64,AWS +m7g.2xlarge,8,32768,4,15,true,true,arm64,AWS +m7g.4xlarge,16,65536,8,30,true,true,arm64,AWS +m7g.8xlarge,32,131072,8,30,true,true,arm64,AWS +m7g.large,2,8192,3,10,true,true,arm64,AWS +m7g.medium,1,4096,2,4,true,true,arm64,AWS +m7g.xlarge,4,16384,4,15,true,true,arm64,AWS +m8g.12xlarge,48,196608,8,30,true,true,arm64,AWS +m8g.16xlarge,64,262144,15,50,true,true,arm64,AWS +m8g.24xlarge,96,393216,15,50,true,true,arm64,AWS +m8g.2xlarge,8,32768,4,15,true,true,arm64,AWS +m8g.48xlarge,192,786432,15,50,true,true,arm64,AWS +m8g.4xlarge,16,65536,8,30,true,true,arm64,AWS +m8g.8xlarge,32,131072,8,30,true,true,arm64,AWS +m8g.large,2,8192,3,10,true,true,arm64,AWS +m8g.medium,1,4096,2,4,true,true,arm64,AWS +m8g.xlarge,4,16384,4,15,true,true,arm64,AWS diff --git a/src/test/resources/ec2/x86-instance-types.csv b/src/test/resources/ec2/x86-instance-types.csv new file mode 100644 index 0000000000..1679c34bed --- /dev/null +++ b/src/test/resources/ec2/x86-instance-types.csv @@ -0,0 +1,63 @@ +instanceType,vcpu,memoryMib,maxNetworkInterfaces,ipv4AddressesPerInterface,encryptionInTransitSupported,currentGeneration,architecture,manufacturer +# EC2 DescribeInstanceTypes, us-east-1, 2026-11-17; virtual sizes only. +c7a.12xlarge,48,98304,8,30,true,true,x86_64,AMD +c7a.16xlarge,64,131072,15,50,true,true,x86_64,AMD +c7a.24xlarge,96,196608,15,50,true,true,x86_64,AMD +c7a.2xlarge,8,16384,4,15,true,true,x86_64,AMD +c7a.32xlarge,128,262144,15,50,true,true,x86_64,AMD +c7a.48xlarge,192,393216,15,50,true,true,x86_64,AMD +c7a.4xlarge,16,32768,8,30,true,true,x86_64,AMD +c7a.8xlarge,32,65536,8,30,true,true,x86_64,AMD +c7a.large,2,4096,3,10,true,true,x86_64,AMD +c7a.medium,1,2048,2,4,true,true,x86_64,AMD +c7a.xlarge,4,8192,4,15,true,true,x86_64,AMD +c7i.12xlarge,48,98304,8,30,true,true,x86_64,Intel +c7i.16xlarge,64,131072,15,50,true,true,x86_64,Intel +c7i.24xlarge,96,196608,15,50,true,true,x86_64,Intel +c7i.2xlarge,8,16384,4,15,true,true,x86_64,Intel +c7i.48xlarge,192,393216,15,50,true,true,x86_64,Intel +c7i.4xlarge,16,32768,8,30,true,true,x86_64,Intel +c7i.8xlarge,32,65536,8,30,true,true,x86_64,Intel +c7i.large,2,4096,3,10,true,true,x86_64,Intel +c7i.xlarge,4,8192,4,15,true,true,x86_64,Intel +m7a.12xlarge,48,196608,8,30,true,true,x86_64,AMD +m7a.16xlarge,64,262144,15,50,true,true,x86_64,AMD +m7a.24xlarge,96,393216,15,50,true,true,x86_64,AMD +m7a.2xlarge,8,32768,4,15,true,true,x86_64,AMD +m7a.32xlarge,128,524288,15,50,true,true,x86_64,AMD +m7a.48xlarge,192,786432,15,50,true,true,x86_64,AMD +m7a.4xlarge,16,65536,8,30,true,true,x86_64,AMD +m7a.8xlarge,32,131072,8,30,true,true,x86_64,AMD +m7a.large,2,8192,3,10,true,true,x86_64,AMD +m7a.medium,1,4096,2,4,true,true,x86_64,AMD +m7a.xlarge,4,16384,4,15,true,true,x86_64,AMD +m7i.12xlarge,48,196608,8,30,true,true,x86_64,Intel +m7i.16xlarge,64,262144,15,50,true,true,x86_64,Intel +m7i.24xlarge,96,393216,15,50,true,true,x86_64,Intel +m7i.2xlarge,8,32768,4,15,true,true,x86_64,Intel +m7i.48xlarge,192,786432,15,50,true,true,x86_64,Intel +m7i.4xlarge,16,65536,8,30,true,true,x86_64,Intel +m7i.8xlarge,32,131072,8,30,true,true,x86_64,Intel +m7i.large,2,8192,3,10,true,true,x86_64,Intel +m7i.xlarge,4,16384,4,15,true,true,x86_64,Intel +m8a.12xlarge,48,196608,12,64,true,true,x86_64,AMD +m8a.16xlarge,64,262144,16,64,true,true,x86_64,AMD +m8a.24xlarge,96,393216,16,64,true,true,x86_64,AMD +m8a.2xlarge,8,32768,4,40,true,true,x86_64,AMD +m8a.48xlarge,192,786432,24,64,true,true,x86_64,AMD +m8a.4xlarge,16,65536,8,40,true,true,x86_64,AMD +m8a.8xlarge,32,131072,10,40,true,true,x86_64,AMD +m8a.large,2,8192,3,20,true,true,x86_64,AMD +m8a.medium,1,4096,2,4,true,true,x86_64,AMD +m8a.xlarge,4,16384,4,20,true,true,x86_64,AMD +m8i.12xlarge,48,196608,12,50,true,true,x86_64,Intel +m8i.16xlarge,64,262144,16,64,true,true,x86_64,Intel +m8i.24xlarge,96,393216,16,64,true,true,x86_64,Intel +m8i.2xlarge,8,32768,4,30,true,true,x86_64,Intel +m8i.32xlarge,128,524288,24,64,true,true,x86_64,Intel +m8i.48xlarge,192,786432,24,64,true,true,x86_64,Intel +m8i.4xlarge,16,65536,8,50,true,true,x86_64,Intel +m8i.8xlarge,32,131072,10,50,true,true,x86_64,Intel +m8i.96xlarge,384,1572864,24,64,true,true,x86_64,Intel +m8i.large,2,8192,3,20,true,true,x86_64,Intel +m8i.xlarge,4,16384,4,30,true,true,x86_64,Intel