
## Manage webhook

URL: https://docs.atlan.com/product/capabilities/build-apps/sdks/python/events/how-tos/aws-lambda/manage-webhook

> Monitor and manage webhooks with the Atlan Python SDK (pyatlan) for real-time event processing and error handling.

# Manage your webhook

Your webhook should now be processing metadata events in real-time. 🎉

## Review metrics

You can monitor the activity through the **Monitor** tab of your function:

1. Open the [AWS Lambda functions console](https://console.aws.amazon.com/lambda/home#/functions).
2. From the list of *Functions*, click your function.
3. Change to the **Monitor** tab.

Here you can see basic graphs of metrics from CloudWatch.

## Review logs

You can review logs of individual requests through CloudWatch logs:

1. Open the [AWS Lambda functions console](https://console.aws.amazon.com/lambda/home#/functions).
2. From the list of *Functions*, click your function.
3. Change to the **Monitor** tab.
4. Click the **View CloudWatch logs** button.

Under the **Log streams** tab, in the *Log streams* table you will see all the logs created by events. You can click on any log stream in the table to view the detailed messages logged during event processing.

## Update SDK

Because we used layers, you can easily update the SDK for your function by updating the layer:

1. Open the [AWS Lambda layers console](https://console.aws.amazon.com/lambda/home#/layers).
2. From the list of *Layers*, click your layer containing the SDK you want to update.
3. In the upper-right, click the **Create version** button.
4. Click the **Upload** button to select the lambda-layer file for the SDK.
5. For *Compatible architectures* select **x86_64**.
6. For *Compatible runtimes* select the latest version of the target language.
7. In the lower-right, click the **Create** button.
8. Open the [AWS Lambda functions console](https://console.aws.amazon.com/lambda/home#/functions).
9. On the **Code** tab, scroll down to *Layers*.
10. In the upper-right of the *Layers* table, click the **Edit** button.
11. From the *Layers* table, select the latest version of the layer you created under *Layer version*.
12. In the lower-right, click the **Save** button.

## Update your code

To modify your own code:

1. Open the [AWS Lambda functions console](https://console.aws.amazon.com/lambda/home#/functions).
2. From the *Functions* list, click the function you want to deploy your code into.
3. On the **Code** tab:

 **Java**

1. In the upper-right of the *Code source* table, click **Upload from** and then **.zip or .jar file**.
2. Use the **Upload** button to select the zip file containing your code.
3. In the lower-right of the dialog click the **Save** button to deploy your new code.

 **Python**

1. In the *Code source* table you can either:

 - (Recommended) Copy / paste the code from your new module (file) into the editor window for **lambda_function.py**.
 - In the upper-right, click **Upload from** and choose the location of your code.

2. Towards the middle of the *Code source* table, click the **Deploy** button to deploy your code.

---
