great-sunset-355
08/03/2021, 9:28 AMResourceOptions
has a providers
argument
opts = ResourceOptions(providers={"prov-name": provider_resource})
Is this the correct way to reference the provider?
opts.providers["prov-name"]
I wonder what error I get if the providers
dict does not contain the required provider - I assume it's general KeyError
right?brave-planet-10645
08/03/2021, 9:38 AMopts = ResourceOptions(provider=provider_array[0])
great-sunset-355
08/03/2021, 11:02 AMproviders
being an dictionary / array
- which mixes 2 completely different structures when it comes to access to the items.
I'll make the provider/s an explicit parameter