terraform-aws-eks icon indicating copy to clipboard operation
terraform-aws-eks copied to clipboard

Documentation needs improvement + linting issue?

Open tf42src opened this issue 1 year ago β€’ 0 comments

I am trying to figure out how configure an eks_managed_node_group (especially how to use a launch_configuration)

I found this link: https://github.com/terraform-aws-modules/terraform-aws-eks?tab=readme-ov-file#input_eks_managed_node_groups

which links to itself. That's not useful at all.

Not sure if this is the right place, but I can do this:

module "eks" {
 [..]
  eks_managed_node_groups = {

    node_group_two = {
      name                       = "node-group-two
      use_custom_launch_template = true

      foo = "bar"  # <-- no complaints at all
      launch_template = {
        id      = aws_launch_template.my-launch-template.id
        version = "$Latest" # or specify a specific version if needed
      }

      min_size     = 1
      max_size     = 1
      desired_size = 1
    }
}
}

If I put foo = "bar" anywhere else in my template I get a linter warning, not here.

How would I know if launch_template even exists?

tf42src avatar Aug 09 '24 06:08 tf42src