How to upgrade EKS bottlerocket only when using the terraform-aws-eks module?


I am using the wonderful module terraform-aws-eks module to spin up EKS instances. I am using the bottlerocket OS, the module itself uses the “aws_ami” data source to identify what ami to use for my EKS cluster.

I know the way to upgrade k8s versions, by just updating the cluster_version and terraform does rest of the magic. But what if I just want to upgrade the bottlerocket version? Its been about 4-5 weeks since I stood up one of my clusters and since then AWS has released an updated bottlerocket version.

I was thinking when I did a “terraform plan” using the same module, terraform would query the data sources and AWS would have returned back with a new version and it would have prompted me with an option to just do an update of the bottlerocket version, but no such thing happens. I know for a fact the k8s version 1.22 has a newer bottlerocket build compared what I used to stand up this cluster.

Am I going about this the wrong way? Can somebody point me in the right direction.

Thank you!