Hi. I wanted to ask you if anyone has an example o...
# ask-community
s
Hi. I wanted to ask you if anyone has an example of how to use `SecretBase`task. What I need to do is take a
PrefectSecret
different, depending on a value of a parameter. For example: If the param
env
is ‘dev’ i need to take
db_dev_url
PrefectSecret, otherwise takes
db_prod_url
PrefectSecret. Does it help me to do that? Or what do you think is the best way to get it? thanks
k
Hey @Santiago Gonzalez, maybe you can try making a similar task to the
PrefectSecret
one here . Edit the run or init to take in another value, and then change the
self.name
s
Thanks for the reply @Kevin Kho. I will try something like that.