fierce-ability-58936
01/28/2022, 2:45 AMctx.RegisterStackTransformation(...
applies to all resources in order, without taking into account child/parent relationship. And it doesn't seem to be a way to check if "is it a parent of XX?".
I tried to add a transformation to the CustomComponent resource in the stack transformation but it didn't work (the nested one never runs). In other words, I wanted to add another transformation in the stack transformation. Seems to be a limitation?
I'm using Go, if that matters. Does anyone have an idea how to achieve this?
I could add that resource-specific transformation when instantiating the CustomResource, but that would require doing that everywhere including tests.little-cartoon-10569
01/28/2022, 2:58 AMpulumi stack init
which also calls pulumi import
a pile of times (and discards the generated code).pulumi up
takes over from there.