lemon-lamp-41193
12/12/2022, 8:50 PMpulumi.InvokeOptions
within a stack transformation? I have the following working for setting an explicit provider on all my resources using pulumi.ResourceOptions
, but trying to do the same with InvokeOptions for functions such as aws.s3.get_bucket
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-10569
12/12/2022, 8:57 PMTransformations 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-41193
12/12/2022, 8:58 PMlittle-cartoon-10569
12/12/2022, 9:07 PMlemon-lamp-41193
12/12/2022, 9:16 PMlittle-cartoon-10569
12/12/2022, 9:18 PMlemon-lamp-41193
12/12/2022, 9:19 PM