awslabs / amazon-eks-ami

Packer configuration for building a custom EKS AMI
https://awslabs.github.io/amazon-eks-ami/
MIT No Attribution
2.38k stars 1.12k forks source link

Unable to create an EKS cluster with al2023 when FIPS is enabled #1863

Closed LochanRn closed 1 day ago

LochanRn commented 5 days ago

What happened: Unable to create an EKS cluster with al2023 with FIPS enabled AMI.

What you expected to happen: To be able to create an EKS cluster with al2023 with FIPS enabled AMI.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

The nodes get created but unable to join the cluster.

After I logged into the vm and checked the cloud-init logs i see the bootstrap.sh file is missing. I built the AMI using the official upstream repo. Used the al2023 template https://github.com/awslabs/amazon-eks-ami/tree/main/templates/al2023 The template does not have the bootstrap.sh script.

Screenshot 2024-06-19 at 5 31 26 PM

Environment:

LochanRn commented 3 days ago

Any docs regarding how to create an EKS cluster using AL2023 is also very helpful.

KrisJohnstone commented 2 days ago

I suggest you read the following blog post as al2023 doesn't use bootstrap.sh, the code in this repo also has pretty good documentation in how nodeadm works: https://github.com/awslabs/amazon-eks-ami/blob/main/nodeadm/README.md

EDIT: the terraform module for eks supports al2023 and has examples: https://github.com/terraform-aws-modules/terraform-aws-eks