pulumi-cdk icon indicating copy to clipboard operation
pulumi-cdk copied to clipboard

Allow passing a pulumi provider to a cdk resource

Open lukehoban opened this issue 3 years ago • 2 comments

This was asked in community slack.

I believe there is not currently. All resources are parented to the StackComponent, but that resource is constructed automatically without the end user being able to provide and parameters, including resource options.

The Stack resource that users create does accept an options parameter which is derived from ComponentResourceOptions (and thus supports passing parent and provider), but we don't ultimately pass that through into the Pulumi StackComponent resource. I expect we can and should forward this on to allow the normal inheritance of resource options down into component and it's CDK-based children.

lukehoban avatar Nov 11 '22 07:11 lukehoban