This message was deleted.
# general
s
This message was deleted.
b
Code is this:
Copy code
contourDeploy, err := yaml.NewConfigFile(ctx, "contour-deploy-file", &yaml.ConfigFileArgs{
		File: "./contour.yaml",
		Transformations: []yaml.Transformation{
			// Use an NLB instead of an ELB
			func(state map[string]interface{}, opts ...pulumi.ResourceOption) {
              ...
			},
		},
	}, pulumi.Provider(eksConfig.Provider))
	if err != nil {
		return nil, err
	}

	
	  fmt.Println(contourDeploy.Resources)
	contourService := contourDeploy.GetResource("v1/Service", "envoy", "projectcontour").(*corev1.Service)
	contourServiceLB := contourService.Status.LoadBalancer().Ingress().Index(<http://pulumi.Int|pulumi.Int>(0)).Hostname().Elem()
I’ve elided the transformation as it never gets called. I added the Println to debug, and the original issue is that it tells me that it can’t do the cast since that value is
nil
(since it doesn’t exist).
To make it weirder, if I run
pulumi up -f
one time on it, it works fine after