https://pulumi.com logo
#general
Title
# general
s

shy-hydrogen-95871

06/07/2022, 3:27 PM
Hello everybody We are developing a custom dynamic provider for database management (we want to create groups, grant permissions to them and etc). We did development in python (we’ve created dynamic resource providers, each for each type) and now we are facing an issue that we can not limit number of connection to DB. We have 2 questions: 1. Do we understand correctly that for each instance of resource isolated env. with Dynamic Resource provider is created and that’s why we can not use locks? 2. Is it any way (as we understand -p 1 controls only create process, but read and other operations will not be limited) to limit parallel usage of all operations?
e

echoing-dinner-19531

06/07/2022, 3:29 PM
1. Do we understand correctly that for each instance of resource isolated env. with Dynamic Resource provider is created and that’s why we can not use locks?
Yes. The way dynamic resources work is the code for the dynamic provider will be reevaluated for each resource operation.
s

shy-hydrogen-95871

06/07/2022, 3:30 PM
@echoing-dinner-19531 is it any way to group them under same env?
e

echoing-dinner-19531

06/07/2022, 3:31 PM
Not easily. There might be something possible with file locks. Seems like a reasonable request to raise an issue about though.
6 Views