You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Last week I had to re-run my pipeline to refresh my SSL certificates; today I noticed that my entire cluster got deleted and re-created; instead of refreshed
In the digital ocean log this can be seen (I re-ran the pipeline to make sure that action was causing it)
@Wouter-J The screenshot you shared is of the project activity. A resource being removed from a project does not necessarily mean that is has been destroyed. Can you use the API to check the created at date for your database cluster? If you have doctl installed you can do that with:
doctl databases get <database cluster id> --format Created
I suspect what you are seeing is issue #585 which was fixed in v2.6.0 of the DigitalOcean provider via #586. Before that change, project assignments happened in bulk which caused unnecessary churn in the project activity history.
You can also run Terraform in debug mode to look at the actual API request made behind the scenes to confirm whether or not DELETE requests are being made:
Last week I had to re-run my pipeline to refresh my SSL certificates; today I noticed that my entire cluster got deleted and re-created; instead of refreshed
In the digital ocean log this can be seen (I re-ran the pipeline to make sure that action was causing it)
My terraform plan output tells me this:
And the plan says:
Plan: 1 to add, 2 to change, 1 to destroy.
The 1 being destroyed / recreated are the secrets which seems logical;
Finally the apply confirms this; but the DO result is as the first screenshot.
Apply complete! Resources: 1 added, 2 changed, 1 destroyed.
Additionally I do realise I am using an older version of terraform (0.14.5) but never had issues with it and it worked like expected before.
Affected Resource(s)
Expected Behavior
A refresh of the SSL certs
Actual Behavior
A refresh of the certs did happen; but also the entire cluster was removed and re-created as a side effect
The text was updated successfully, but these errors were encountered: