You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/connections/destinations/catalog/google-cloud-function/index.md
+12-11Lines changed: 12 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -21,17 +21,18 @@ Before you can process events from Segment, you must provide a Google Cloud Func
21
21
22
22
1. Go to https://cloud.google.com/functions.
23
23
2. Click **VIEW CONSOLE**.
24
-

25
-
26
24
3. Select a project.
27
25
4. Click **CREATE FUNCTION**.
28
-

29
26
5. Enter a name for your function, and choose how much memory the function can use.
30
-
7. In the **Trigger** field, select `HTTP`. Save the `URL` GCP gives you. You'll use this to configure the Segment destination later.
31
-
8. Choose how you'll provide the function's code (in the **Source code** field) and what language the code is written in (in the **Runtime** field).
32
-
9. Enter the name of the function as you defined it in your code, in the **Function to execute** field.
33
-
10. Click **Create** to save your settings and create the Google Cloud Function.
34
-

27
+
6. In the **Trigger** field, select `HTTP`. Save the `URL` GCP gives you. You'll use this to configure the Segment destination later.
28
+
7. Choose how you'll provide the function's code (in the **Source code** field) and what language the code is written in (in the **Runtime** field).
29
+
8. Enter the name of the function as you defined it in your code, in the **Function to execute** field.
30
+
9. Click **Create** to save your settings and create the Google Cloud Function.
31
+
32
+
33
+
### Test the function
34
+
35
+
Segment recommends that you use the Debugger of the source you intend to connect to the Google Cloud Function destination to inspect the request body of the incoming event. This allows you to build handlers in your function based on accurate incoming data. For more information, see [Testing Connections](/docs/connections/test-connections/).
35
36
36
37
## Configure the Google Cloud Function Destination
37
38
@@ -44,7 +45,7 @@ Once you create the Google Cloud Function, you can set up a Segment destination
44
45
3. Click **Configure Google Cloud Function**.
45
46
4. Enter the destination settings for this GCF destination.
46
47
47
-
| Setting | Description |
48
-
| -------- | ------------------- |
49
-
|**HTTP Trigger**| The URL given under the `Trigger` section when you created the Google Cloud Function. |
|**HTTP Trigger**| The URL given under the `Trigger` section when you created the Google Cloud Function.|
50
51
|**API Key** (optional) | A string to identify that a request is coming from Segment, if required by the function. <br><br>The API key is injected in the `Authorization` header as a [basic authorization header](https://en.wikipedia.org/wiki/Basic_access_authentication) without password. |
0 commit comments