diff --git a/pkg/cloud/services/eks/nodegroup.go b/pkg/cloud/services/eks/nodegroup.go index 00fc0f8371..c83bb26807 100644 --- a/pkg/cloud/services/eks/nodegroup.go +++ b/pkg/cloud/services/eks/nodegroup.go @@ -222,7 +222,8 @@ func (s *NodegroupService) createNodegroup() (*eks.Nodegroup, error) { RemoteAccess: remoteAccess, UpdateConfig: s.updateConfig(), } - if managedPool.AMIType != nil && (managedPool.AWSLaunchTemplate == nil /*|| managedPool.AWSLaunchTemplate.AMI.ID == nil*/) { + // if managedPool.AMIType != nil && (managedPool.AWSLaunchTemplate == nil /*|| managedPool.AWSLaunchTemplate.AMI.ID == nil*/) { + if managedPool.AMIType != nil { input.AmiType = aws.String(string(*managedPool.AMIType)) } if managedPool.DiskSize != nil {