Hi everyone! Anyone is using pulumi <-> Snow...
# general
d
Hi everyone! Anyone is using pulumi <-> Snowflake for multiple people team? We ran into this error recently. The resource and Pulumi JSON file was created by other colleagues, then when we tried to
destroy
the resource. It’s showing this issue:
Copy code
The user you were trying to authenticate as differs from the user currently logged in at the IDP
The fix we found it to manually modify the JSON file to our username, then it works o_o
b
We can make the manual fix or run a
pulumi up
beforehand via automation API which modifies the state files accordingly
From my best debugging efforts, we are sure that
pulumi
is properly configured with the
SNOWFLAKE_USER
etc. However, when the sql connection to snowflake is opened,
pulumi
seems to be attempting to use the resource metadata (aforementioned json) to initiate the connection rather than what is configured. We believe this has only started happening recently so I'm taking a look at the recent changes for dependencies that
pulumi
has to provide snowflake IaC capabilities.
upon further investigation, modifying the json directly is a terrible idea and leads to interesting side effects.
up
is the only solution we have for it but that makes no sense for when we are trying to run
destroy