pilot-framework / gcp-cdn-waypoint-plugin

This is a Deploy/Release Waypoint Plugin that provisions the necessary resources to deploy static files on GCP Cloud Storage and Cloud CDN.
MIT License
0 stars 0 forks source link

platform destroy phase attempts multiple teardowns #3

Closed grottohub closed 3 years ago

grottohub commented 3 years ago

since waypoint deploy creates individual deployments, it will go through the waypoint cache and execute the DestroyFunc for each deployment. since our buckets aren't versioned, only a single execution is needed, but the command still tries to destroy non-existent resources and errors out after the first one.

grottohub commented 3 years ago

we should add an Exists() check for the bucket before attempting teardowns, and if it already doesn't exist, then we just return a success