sparse-intern-71089
01/20/2021, 8:54 AMbrave-planet-10645
01/20/2021, 10:16 AMComponentResource
using a normal argument and then accessing it in the resource inside the component resource.
I've done a quick example here: https://github.com/pierskarsenbarg/pulumi-scratchpad/tree/main/provider-componentresource
You can see in my Pulumi.dev.yaml
file that my region is set to eu-west-1
but because I've passed in a provider to my component resource the bucket will get created in eu-west-2
instead:proud-hair-78501
01/20/2021, 11:57 AMproud-hair-78501
01/20/2021, 11:57 AMbrave-planet-10645
01/20/2021, 12:01 PM