lemon-lamp-4119312/12/2022, 8:50 PM
within a stack transformation? I have the following working for setting an explicit provider on all my resources using
, but trying to do the same with InvokeOptions for functions such as
seems to have no effect, making me wonder if transformations affect functions at all.
def stackTransformations(args): args.opts = pulumi.ResourceOptions.merge(args.opts, pulumi.ResourceOptions( provider = self.deploymentProvider )) return pulumi.ResourceTransformationResult(args.props, args.opts) pulumi.runtime.register_stack_transformation(lambda args: stackTransformations(args))
little-cartoon-1056912/12/2022, 8:57 PM
Transformations can also be applied in bulk to many or all resources in a stack by using Stack Transformations, which are applied to the root stack resource and as a result inherited by all other resources in the stack.
lemon-lamp-4119312/12/2022, 8:58 PM
little-cartoon-1056912/12/2022, 9:07 PM
lemon-lamp-4119312/12/2022, 9:16 PM
little-cartoon-1056912/12/2022, 9:18 PM
lemon-lamp-4119312/12/2022, 9:19 PM