Provisionamento dos serviços
Neste artigo apresentamos os serviços na GCP e como fazer o provisionamento através do Terraform.
PubSub
https://registry.terraform.io/providers/hashicorp/google/latest/docs/guides/getting_started
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/pubsub_topic
Cloud Functions
https://cloud.google.com/functions/docs/calling/pubsub
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloudfunctions_function
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloudfunctions_function
https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/cloudfunctions_function
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloudfunctions_function
https://ruanmartinelli.com/posts/terraform-cloud-functions-nodejs-api