https://pulumi.com logo
i

important-vegetable-39003

12/10/2021, 4:52 PM
Hi folks, does anyone know how to specify the cluster through code when creating a resource?
b

billowy-army-68599

12/10/2021, 5:16 PM
hi Rokas, can you clarify a little bit what you mean?
i

important-vegetable-39003

12/10/2021, 7:21 PM
I have multiple clusters defined and would like to prompt input to select one.
Using the API, how can I specify a cluster to use
b

billowy-army-68599

12/10/2021, 7:27 PM
i

important-vegetable-39003

12/10/2021, 8:00 PM
So when I call the provider it'll internally set to the specified one?
Or do I have to assign it to a var and use it somehow?
b

billowy-army-68599

12/10/2021, 8:02 PM
you have to pass it to your resources as a resource option
i

important-vegetable-39003

12/10/2021, 8:15 PM
Oh, it's part of opts, I see
Thanks
4 Views