Cloud Run Functions가 Eventarc에서 지원되는 이벤트로 트리거될 수 있게 하는 Eventarc 트리거를 만들 수 있습니다. Google Cloud CLI 또는 Google Cloud 콘솔을 사용하여 함수를 만들거나 배포할 때 트리거를 구성해야 합니다
또한 Eventarc 채널에 게시된 커스텀 이벤트에 대한 응답으로 Cloud Run Functions를 트리거할 수 있습니다.
Eventarc 트리거 만들기
Cloud Run Functions 서비스가 지정된 이벤트 또는 이벤트 집합에 대한 알림을 수신하도록 Eventarc 트리거를 만듭니다. 트리거의 필터를 지정하여 이벤트 유형 및 소스를 포함하여 이벤트의 라우팅을 구성할 수 있습니다. Cloud Run Functions에 대해 Eventarc 트리거를 구성하는 방법은 Eventarc 트리거를 참조하세요.
커스텀 이벤트에 대한 응답으로 Cloud Run Functions를 트리거할 수 있습니다.
Cloud Run Functions용 Firebase SDK에서 지원하는 기본 제공 Firebase 이벤트와는 달리, 특별 이벤트 또는 추가 이벤트 제공업체에서 제공하는 이벤트로, Eventarc 채널에 게시됩니다. 자세한 내용은 커스텀 이벤트 트리거 만들기 및 처리를 참조하세요.
Firebase Extensions에서 제공하는 커스텀 이벤트의 경우 게시되는 이벤트 목록(있는 경우)은 확장 프로그램의 문서를 참조해야 합니다. 예를 들어 Run Payments with Stripe 확장 프로그램의 이벤트 유형을 참조하세요.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-04-22(UTC)"],[[["\u003cp\u003eEventarc triggers enable Cloud Run functions to be activated by various events, requiring trigger configuration during function creation or deployment.\u003c/p\u003e\n"],["\u003cp\u003eCloud Run functions can be triggered by events such as audit log creation, direct events from sources like Cloud Storage, or messages published to a Pub/Sub topic.\u003c/p\u003e\n"],["\u003cp\u003eCustom events published to an Eventarc channel can also trigger Cloud Run functions, offering flexibility beyond built-in Firebase events.\u003c/p\u003e\n"],["\u003cp\u003eSpecific events are able to trigger requests to the Cloud Run service by configuring the filters of the trigger to match the criteria of the events.\u003c/p\u003e\n"]]],[],null,["# Create a trigger for Cloud Run functions\n\n[Standard](/eventarc/standard/docs/overview)\n\nYou can create an Eventarc trigger that enables a Cloud Run function\nto be triggered by an event supported by Eventarc. Note that you\nmust configure a trigger when you create or deploy a function using the\nGoogle Cloud CLI or the Google Cloud console.\n\nYou can also trigger Cloud Run functions in response to custom events\npublished to an Eventarc channel.\n\nCreate an Eventarc trigger\n--------------------------\n\nCreate an Eventarc trigger so that your\nCloud Run functions service receives notifications of a specific event or\nset of events. By specifying filters for the trigger, you can configure the\nrouting of the event, including the event type and source. For more information\non how to configure an Eventarc trigger for\nCloud Run functions, see [Eventarc triggers](/functions/docs/calling/eventarc).\n\nThe following event types trigger requests to your service:\n\n- [An audit log is created](/eventarc/docs/reference/supported-events#using-cloud-audit-logs) that matches the trigger's filter criteria\n- [A direct event occurs](/eventarc/docs/reference/supported-events#directly-from-a-google-cloud-source) such as an update to a Cloud Storage bucket or an update to a Firebase Remote Config template\n- [A message is published to a Pub/Sub topic](/eventarc/docs/reference/supported-events#using-pubsub)\n\nTrigger functions with custom events\n------------------------------------\n\nYou can trigger Cloud Run functions in response to custom events.\nThese are events produced by special or additional event providers, as opposed\nto the built-in Firebase events supported by the Firebase SDK for\nCloud Run functions, and that are published to an Eventarc\nchannel. For more information, see\n[Create and handle custom event triggers](https://firebase.google.com/docs/functions/beta/custom-events).\nNote that for custom events provided by\n[Firebase Extensions](https://firebase.google.com/docs/extensions/install-extensions),\nyou should refer to the extension's documentation for a list of events (if any)\nthat it publishes. For example, see the\n[event types for the Run Payments with Stripe extension](https://github.com/stripe/stripe-firebase-extensions/blob/98c97775d54fb0be4601864b74d2fe5ce24dab83/firestore-stripe-payments/extension.yaml)."]]