https://pulumi.com logo
#google-cloud
Title
# google-cloud
l

limited-rainbow-51650

03/01/2021, 9:19 AM
Also, on
destroy
, our proxy isn’t even started, so the deletion of the
mysql.Grants
doesn’t happen.
g

gentle-diamond-70147

03/02/2021, 12:47 AM
Your Pulumi application is not executed during a
destroy
, only your state file is acted on, so I don't believe you can use
cloud_sql_proxy
in this manner. However the Automation API would allow you to do this easily. You would do something essentially like this: