it looks like there’s no type in `pulumi-eks` tha...
# aws
c
it looks like there’s no type in
pulumi-eks
that satisfies
eks.ManagedNodeGroup#LaunchTemplate
: https://github.com/pulumi/pulumi-eks/blob/v1.0.4/sdk/go/eks/managedNodeGroup.go#L63 i can work around it by importing an equivalent from the AWS classic package. is that the only approach?
Copy code
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/ec2"
	aws_eks "github.com/pulumi/pulumi-aws/sdk/v5/go/aws/eks"
	"github.com/pulumi/pulumi-eks/sdk/go/eks"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		template, err := ec2.NewLaunchTemplate(ctx, "template", &ec2.LaunchTemplateArgs{})

		_, err = eks.NewManagedNodeGroup(ctx, "group", &eks.ManagedNodeGroupArgs{
			LaunchTemplate: aws_eks.NodeGroupLaunchTemplateArgs{
				Id: template.ID(),
			},
		})

		return err
	})
}
s
AFAIK that is the only approach, but I could be mistaken.
c
👍 thanks!