Terraform cloud function: "googleapi: Error 400: The PubSub topic cannot be updated."

As it turns out, this was a cluster of problems with Terraform state getting mixed up, “Eventarc API” not being enabled in the project, the event type being wrong, and existing HTTP triggers not being able to change into event triggers on the fly.

I got it to work after I destroyed my functions and recreated them.

1 Like