-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to Cloud Functions Pub/Sub trigger event #1180
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me - running the tests now.
Ah, bummer, looks like the pubsub test doesn't pass:
Can you fix that up? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mergeable once tests pass.
Re-running tests. |
Tests look good! Waiting on Travis now. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
The current
providers/cloud.pubsub/eventTypes/topic.publish
trigger event is marked as a legacy event type. There is no issue using it at the moment but is stated that it could be removed at a future date.https://cloud.google.com/functions/docs/calling/pubsub#legacy_cloud_pubsub_triggers
There are some changes to the event object format that comes through on Pub/Sub messages. Although this doesn't matter for terraform, one thing to note is that functions that have been deployed using the legacy event type (before Feb 28) need to be deleted and redeployed in order to support the new event type. Any new deployments that occur after Feb 28 will use the new event type.
I've created an issue separately for updates to Cloud Storage event triggers: #1179
Here are some snippets from a GCP email I received highlighting these changes: