https://pulumi.com logo
#python
Title
# python
f

fast-arm-63150

10/28/2021, 6:13 PM
Hi again all (including @prehistoric-activity-61023) - is there a way for pulumi to read a config file to populate its configuration instead of this being command line? Or is this just a matter of editing the pulumi.*.yaml file?
p

prehistoric-activity-61023

10/28/2021, 6:28 PM
what did I do to get a special mention here? 😄
I’d like to answer but I don’t really get your question. Are you talking about setting config values without using CLI?
If so, you can simply edit the stack YAML file. This is what I do. You have to use CLI in order to save secrets though.
f

fast-arm-63150

10/29/2021, 1:48 PM
Thanks @prehistoric-activity-61023!
Is there any way to avoid that error 'resourceInUseByAnotherResource' when you try to update a resource that has dependencies?
p

prehistoric-activity-61023

10/29/2021, 2:24 PM
I’ve never seen this error myself 😐
Can you share some more details how you can reproduce that error?
f

fast-arm-63150

11/01/2021, 4:59 PM
@prehistoric-activity-61023 will share momentarily, thanks for bearing with me!
I do get an error trying to delete the postgres user from a database instance when I try to pulumi destroy
p

prehistoric-activity-61023

11/01/2021, 5:36 PM
quick search told me it might be related to GCP
Can we provide the version of pulumi as well as version of providers you’re using? (
pulumi version
+
pip freeze
from the venv should be enough) Can you confirm we’re talking about CloudSQL from GCP? I think you didn’t mention the cloud provider. Did you create and manage the db server using pulumi as well?
resourceInUseByAnotherResource
seems to be returned by GCP API itself so… it’s probably correct 😄. The question is: how did you manage to get that? (it might be your fault or you manage to find a bug in a provider). If you are able to reproduce the issue consistently and can share the full code, it could help us debug it further. Anyway, I’ll wait until you answer the questions above 🙂.