Google Cloud Functions Plugin

Hello there,

I just finished working on a Google Cloud Functions plugin.
The plugin would work for most use cases and I just used it today to deploy several of my functions in production :tada:.

I would love to get your feedback.

Here are some of the questions I encountered:

  • The plugin doesn’t support staging deployments before releasing them to general traffic, this is mainly because I haven’t found a way to support this using Cloud Functions. This means that the plugin does almost nothing in the release stage expect set the IAM policy for unauthenticated functions. Would it be better in this case to do the real deployment in the release stage of Waypoint and do nothing during deploy so that users who don’t want traffic to reach their app before the release stage aren’t misguided ?

  • Destroy is not supported for build nor release for the same reason mentioned above. The only way I was able to implement this was by deleting the function, which is not what most people would want I think. I was surprised to see that Waypoint deletes old releases and deployments after a successful up command. What kind of work should be done during destroy ? Because for most of the platforms I have used (Heroku, App Engine, Cloud Functions, …) deleting a deployment means there is no way to rollback.

  • It would be amazing if the plugin executable can print it’s documentation when executed, this way I can easily auto generate the documentation in Markdown on the CI without having to install Waypoint as well. If it is relatively easy to implement, I would love to contribute working on this.

Thank you everyone at Hashicorp for a great project. I am really happy to use it so far.

1 Like

I tried your plugins and they worked great! I didn’t realize that I also needed your archive plugin also and I got a nice error message about that.

After installing both the archive and cloudfunctions plugins I had smooth sailing using the 1st app in your example. Very fun, thanks for sharing this!

1 Like

Thank you for your feedback :slightly_smiling_face:, great point on the archive plugin, I forgot to mention it in the getting started, I just updated it to add it.

1 Like