pulumi-eks: Is AMI for OS: AL2023, GPU support: true, architecture: x86_64 missing?

What happened?

I do not see any entry for AL2023 GPU optimized AMI here. But I do see AWS have optimized AMI for Nvidia

Image

I am trying to update K8s version from 1.29 to 1.31 and also updated the Pulumi EKS from 2.2.1 to 3.4.0

Example

const cluster = new eks.Cluster(
      `${regionalNamespace}-cluster`,
      {
        name: `${regionalNamespace}`,
        version: '1.31',
        vpcId: ...,
        privateSubnetIds: ...
        publicSubnetIds: ...,
        enabledClusterLogTypes: ['api', 'audit', 'authenticator'],
        tags: projectTags,
        endpointPrivateAccess: true,
        endpointPublicAccess: true,
        nodeAssociatePublicIpAddress: false,
        providerCredentialOpts: {
          profileName: aws.config.profile,
        },
        roleMappings: [
          ...
        ],
        instanceType: 'g5.2xlarge',
        gpu: true,
        nodeRootVolumeSize: 200,
        ...,
      },
      { provider: ... },
    );

Output of pulumi about

CLI          
Version      3.142.0
Go Version   go1.23.3
Go Compiler  gc

Host     
OS       debian
Version  11.7
Arch     x86_64

Backend        
Name           fv-az1490-728
URL            s3://staging-pulumi-state-io
User           root
Organizations  
Token type     personal

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you’ve opened one already).

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16 (7 by maintainers)

Commits related to this issue

Most upvoted comments

FYI version v3.6.0 was released with support for nvidia based GPUs for AL2023. I’m closing this issue for now and opened this one (https://github.com/pulumi/pulumi-eks/issues/1561) for adding Neuron support.

@shashiranjan84 I’ll continue looking into the other issues you’ve opened, but you’ll not have to need to use the AMI override anymore. The provider should now select the appropriate AMI for all instances with NVIDIA GPUs

@shashiranjan84 this sounds like a separate problem. Can you please open another issue for this and include code and steps to reproduce this. Thanks a lot! Given that you’re on an older version of 2.x you might have to first update to a more recent version first (e.g. v2.8.1). I have a suspicion that this is related to this bug https://github.com/pulumi/pulumi-eks/issues/1087 that was fixed in v2.7.2.

Anyways, let’s take this to a new issue and we can dig into it! Feel free to tag me there

You do not have to hardcode the AMI id. You can retrieve the region specific AMI from SSM Parameter Store like this:

const ami = pulumi.interpolate`/aws/service/eks/optimized-ami/${cluster.eksCluster.version}/amazon-linux-2023/x86_64/nvidia/recommended/image_id`.apply(name =>
  aws.ssm.getParameter({ name }, { async: true })
).apply(result => result.value);