If so, I would just validate this in the constructor.
f
full-dress-10026
07/28/2023, 8:59 PM
I want to make it required for all pulumi calls.
full-dress-10026
07/28/2023, 9:00 PM
Any call to any Pulumi component in my code must pass the resourceOptions.provider.
s
stocky-restaurant-98004
07/31/2023, 4:43 PM
You might be able to do it with a policy pack. You might also be able to make a class that inherits from ComponentResouce that throws an exception if it’s not defined.
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.