Skip to content

latest graviton machine types like *8g are not currently supported. #3174

@danbf

Description

@danbf

Upcoming End-of-Support

  • I acknowledge the upcoming end-of-support for AWS SDK for Java v1 was announced, and migration to AWS SDK for Java v2 is recommended.

Describe the bug

The latest graviton machine types like families c8g and m8g are not currently supported. The last machine type additions were the R8g family:

R8gMedium("r8g.medium"),
R8gLarge("r8g.large"),
R8gXlarge("r8g.xlarge"),
R8g2xlarge("r8g.2xlarge"),
R8g4xlarge("r8g.4xlarge"),
R8g8xlarge("r8g.8xlarge"),
R8g12xlarge("r8g.12xlarge"),
R8g16xlarge("r8g.16xlarge"),
R8g24xlarge("r8g.24xlarge"),
R8g48xlarge("r8g.48xlarge"),
R8gMetal24xl("r8g.metal-24xl"),
R8gMetal48xl("r8g.metal-48xl"),

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

The SDK is kept in match step with allowed instance types in AWS until the EOL date.

Current Behavior

Use the latest https://plugins.jenkins.io/ec2/ version in Jenkins and request a c8g or m8g instance type. It will throw and error like this:

Failed to run script file:/usr/local/opt/shared-data/builder/jenkins_home/init.groovy.d/d_ec2_plugin.groovy
java.lang.IllegalArgumentException: Cannot create enum from m8g.medium value!

Reproduction Steps

Use the latest https://plugins.jenkins.io/ec2/ version in Jenkins and request a c8g or m8g instance type. It will throw and error like this:

Failed to run script file:/usr/local/opt/shared-data/builder/jenkins_home/init.groovy.d/d_ec2_plugin.groovy
java.lang.IllegalArgumentException: Cannot create enum from m8g.medium value!

Possible Solution

Can aws/aws-sdk-java-v2@91d3531 be backported from v2->v1?

Additional Information/Context

The https://github.com/jenkinsci/ec2-plugin supports only the v1 sdk currently via the https://github.com/jenkinsci/aws-java-sdk-plugin . Doing this backport would allow time for the aws-java-sdk-plugin be be updated to v2 iof the aws-sdk-java for Jenkins users which is underway in jenkinsci/ec2-plugin#1021 .

AWS Java SDK version used

1.12.201

JDK version used

openjdk 21.0.4 2024-07-16 LTS OpenJDK Runtime Environment Corretto-21.0.4.7.1 (build 21.0.4+7-LTS) OpenJDK 64-Bit Server VM Corretto-21.0.4.7.1 (build 21.0.4+7-LTS, mixed mode, sharing)

Operating System and version

amazon/al2023-ami-ecs-hvm-2023.0.20240905-kernel-6.1-x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed-for-stalenessfeature-requestA feature should be added or improved.service-apiThis issue is due to a problem in a service API, not the SDK implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions