# This data source is included for ease of sample architecture deployment # and can be swapped out as necessary. data "aws_region" "current" {} # EKS currently documents this required userdata for EKS worker nodes to # properly configure Kubernetes applications on the EC2 instance. # We utilize a Terraform local here to simplify Base64 encoding this # information into the AutoScaling Launch Configuration. # More information: https://docs.aws.amazon.com/eks/latest/userguide/launch-workers.html locals { demo-node-userdata = <