How would i dynamically pick resources based on la...
# ask-community
b
How would i dynamically pick resources based on launchpad config file ?
c
Hi Bala. It's currently not possible to dynamically pick resources. Wondering what your use case is for this? If it's to choose different resources per environment, I would recommend something like this: https://docs.dagster.io/guides/dagster/transitioning-data-pipelines-from-development-to-production#production Another option would be to create a different job for each resource, so you can choose when to execute with one resources versus another.
👍 1
b
Thanks. Yes our use case is quite similar.
can configure_at_launch() do something similar ?
c
I believe
configure_at_launch
is used for applying runtime config to a resource that has already been bound to the job/asset, so it isn't possible to dynamically choose which resource to use here. Though you can configure your resource to have different behavior at runtime using
configure_at_launch
ty spinny 1