How to setup mongo db atlas database trigger to trigger google cloud function (which is created with required authentication)?

I already have the code ready to trigger google cloud function which can accept unauthenticated trigger but I want to include authentication so that secured cloud function shall allow mongo db trigger

Hey @Ashok_Penakalapati,

Welcome to the MongoDB Community :sparkles:

If your GCP function is deployed with an HTTP trigger and you have a URL for that GCP function, then I believe you can create an Atlas trigger with a function. Within this function, you can use axios to call your Google Cloud function.

Could you please provide more context of your use case when you say “unauthenticated trigger”? Meanwhile, refer to the Authenticate for invocation - Google Cloud documentation to read more.