title: Terraform aws eks worker node spot instance
body: <p>I am following this blog to run terraform to spin up an eks cluster .
  <a href="https://github.com/berndonline/aws-eks-terraform/blob/master/" rel="nofollow noreferrer">https://github.com/berndonline/aws-eks-terraform/blob/master/</a></p>
  
  <p>I just want to change my ec2 worker node type to spot instance 
  <a href="https://github.com/berndonline/aws-eks-terraform/blob/master/eks-worker-nodes.tf" rel="nofollow noreferrer">https://github.com/berndonline/aws-eks-terraform/blob/master/eks-worker-nodes.tf</a>
  I googled and narrowed it down to launch configuration section,</p>
  
  <p>any ideas how to change the ec2 type to spot instance ?</p>