cloudposse / cloudposse/terraform-aws-eks-node-group

ami_release_version bottlerocket not working with short version name

Open
#209 2 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
HCL
Stars
99
Forks
134
PR merge metrics
No merged PRs in 30d

Description

### 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_

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with ami_release_version set to 1.34.0 on EKS 1.32, then inspect how the module passes that value to the EKS node group API. Done means the documented short Bottlerocket version is accepted while the full version, such as 1.34.0-18d04e52, continues to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, kubernetes
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.