powerful-hydrogen-54015
04/01/2025, 6:42 AMimport pulumi_aws as aws
cluster = aws.eks.Cluster(...)
lt=aws.ec2.LaunchTemplate("example", ...)
nodegroup = aws.eks.NodeGroup("standard", cluster_name=cluster.name, launch_template=aws.eks.NodeGroup(id=lt.id, version=lt.latest_version, ...)
But the node group will always create a default templates, and attach an unencrypted disk to the instance. Anyone know how to avoid the default launch template got created? Thanksmodern-zebra-45309
04/01/2025, 9:58 AMlaunch_template=aws.eks.NodeGroup(id=lt.id, version=lt.latest_version, ...)
when it should be launch_template=aws.eks.NodeGroupLaunchTemplateArgs(id=lt.id, version=lt.latest_version)
. It would also be good to see the full definition of launch_template
to make sure that it's not a problem with your launch template definition.