hashicorp / learn-terraform-provision-eks-cluster

https://developer.hashicorp.com/terraform/tutorials/kubernetes/eks
Mozilla Public License 2.0
397 stars 1.2k forks source link

pre_bootstrap_user_data in eks_managed_node_groups is unusable for BOTTLEROCKET and hence containerd cannot be used #79

Closed dwaiba closed 1 year ago

dwaiba commented 2 years ago

https://github.com/hashicorp/learn-terraform-provision-eks-cluster/blob/af9294ca38741185c566b94c9b81a99241e2ba71/eks-cluster.tf#L30 and https://github.com/hashicorp/learn-terraform-provision-eks-cluster/blob/af9294ca38741185c566b94c9b81a99241e2ba71/eks-cluster.tf#L48 cannot be used for BOTTLEROCKET_x86_64 as it throws * : Ec2LaunchTemplateInvalidConfiguration: User data was not a TOML format that could be processed . BOTTLEROCKET needs to be used for containerd in the EKS nodes rather than the default AL2_x86_64 .

Presently in this repo none of the BOTTLEROCKET amitypes like BOTTLEROCKET_ARM_64 BOTTLEROCKET_x86_64 BOTTLEROCKET_ARM_64_NVIDIA BOTTLEROCKET_x86_64_NVIDIA cannot be used without changes.