Skip to content

fix: Don't retrieve ssm param if custom ami used#3660

Open
samuelallan72 wants to merge 1 commit intoterraform-aws-modules:masterfrom
open-craft:samuel/fix-al2-master
Open

fix: Don't retrieve ssm param if custom ami used#3660
samuelallan72 wants to merge 1 commit intoterraform-aws-modules:masterfrom
open-craft:samuel/fix-al2-master

Conversation

@samuelallan72
Copy link

@samuelallan72 samuelallan72 commented Mar 19, 2026

Description

The ssm param for the recommended ami is not used if a custom ami is used. Also, if one wishes to use a custom ami with the older AL2 ami_type (uses bootstrap.sh for user_data in launch templates), retrieving the ssm param fails with k8s >= 1.33 due to the AL2 images being removed:

Error: reading SSM Parameter (/aws/service/eks/optimized-ami/1.34/amazon-linux-2/recommended/image_id): couldn't find resource

Private-ref: https://tasks.opencraft.com/browse/BB-10631

Motivation and Context

This fixes using self managed node groups with Ubuntu AMIs.

Breaking Changes

I don't believe this breaks backward compatibility.

How Has This Been Tested?

I've tested this patch based on v20.37.2. Ideally we would backport it to the v20 release series, since we're using that at the moment and cannot update right now.

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

The ssm param for the recommended ami is not used if a custom ami is used.
Also, if one wishes to use a custom ami with the older AL2 ami_type (uses bootstrap.sh for user_data in launch templates),
retrieving the ssm param fails with k8s >= 1.33 due to the AL2 images being removed:

    Error: reading SSM Parameter (/aws/service/eks/optimized-ami/1.34/amazon-linux-2/recommended/image_id): couldn't find resource

Private-ref: https://tasks.opencraft.com/browse/BB-10631
@samuelallan72 samuelallan72 changed the title fix: don't retrieve ssm param if custom ami used fix: Don't retrieve ssm param if custom ami used Mar 19, 2026
@samuelallan72
Copy link
Author

Please let me know what would be preferred regarding updating examples here. I could add a new one in examples/self-managed-node-group/ perhaps, with a module that deploys eks k8s 1.33 with ami_type AL2 and an ubuntu ami? I'm not sure if more examples are desired here though.

@samuelallan72 samuelallan72 marked this pull request as ready for review March 19, 2026 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant