sparse-intern-71089
05/27/2021, 4:29 PMbillowy-army-68599
billowy-army-68599
bland-florist-21412
05/27/2021, 5:21 PMeventType
should be google.pubsub.topic.publish
instead of providers/cloud.pubsub/eventTypes/topic.publish
. The docs here: https://www.pulumi.com/docs/reference/pkg/gcp/cloudfunctions/function/#functioneventtrigger send you to the docs here: https://cloud.google.com/functions/docs/calling/pubsub. In those docs they show the current way, which doesn't match the Resource in Pulumi, and the legacy way which does match the Resource but uses the wrong trigger.bland-florist-21412
05/27/2021, 5:21 PMbillowy-army-68599
bland-florist-21412
05/31/2021, 5:52 PMdeploy.yml
file in it's directory and we auto-discover that, build the function from it, determine the trigger type from it, etc. so there's some yml parsing, if
statements, etc.bland-florist-21412
05/31/2021, 5:53 PMtrigger_args = gcp.cloudfunctions.FunctionEventTriggerArgs(
event_type='google.pubsub.topic.publish',
resource=topic.id)
function_args['event_trigger'] = trigger_args