https://pulumi.com logo
#general
Title
# general
n

narrow-jackal-57645

06/22/2023, 8:06 AM
Q: What would be the way to retrieve the launchTemplate ID or Name from the
eks.ManagedNodeGroup
object? FYI, my setup is as following: • nodejs 18.16.0 • pulumi 3.72.0 • pulumi/pulumi-eks 1.0.2 Below is my code:
Copy code
const nodeGroup = new eks.ManagedNodeGroup("cicd-kubernetes-nodegrp-00", {
  # stripped
})

// my naive way to retrieve the launchTemplate of the NodeGroup EC2 instance

nodeGroup.nodeGroup.launchTemplate.apply(lt => {
  console.log(lt.id); // returns null unfortunately
})
Many thanks in adv