terraform-aws-eks-node-group icon indicating copy to clipboard operation
terraform-aws-eks-node-group copied to clipboard

ami_release_version bottlerocket not working with short version name

Open QuentinBtd opened this issue 9 months ago • 2 comments

Describe the Bug

I'm trying to deploy a nodegroup with Bottlerocket AMI following the documentation:

The EKS AMI "release version" to use.
[...]
Examples:
[---]
Bottlerocket: 1.2.0 or 1.2.0-ccf1b754

I tried with ami_release_version = ["1.34.0"] but I've got this error:

Error: creating EKS Node Group (cluster-noprod:autoscalers-br-workers-hen): operation error EKS: CreateNodegroup, https response error StatusCode: 400, RequestID: xxxxxxxxxxxxxx, InvalidParameterException: Requested release version 1.34.0 is not valid for kubernetes version 1.32.

It works with ami_release_version = ["1.34.0-18d04e52"]

Expected Behavior

Nodegroup can be deploy with shorted version.

Steps to Reproduce

Deploy with ami_release_version = ["1.34.0"]

Screenshots

No response

Environment

  • EKS 1.32
  • Terraform 1.11
  • Module in v3.3.0

Additional Context

No response

QuentinBtd avatar Mar 21 '25 10:03 QuentinBtd

aws ssm get-parameter --name /aws/service/bottlerocket/aws-k8s-1.32/arm64/1.34.0/image_id

Return the ami id.

QuentinBtd avatar Mar 21 '25 10:03 QuentinBtd

I'm seeing the same issue with version bottlerocket version 1.45.0

alexkivars avatar Aug 28 '25 16:08 alexkivars