@Muthu Kumaranโ :
If the event being sent from Databricks to your Lambda function sometimes does not contain authorization headers, you may need to modify your webhook configuration or Lambda function code to handle this situation. Here are a few suggestions:
- Check the webhook configuration: Make sure that you have configured the webhook to include the authorization header in the event payload. You can do this by specifying the appropriate header fields in the webhook configuration.
- Check the Databricks job configuration: If the event is being triggered by a Databricks job, make sure that the job is configured to include the authorization header in the event payload. You can do this by specifying the appropriate header fields in the job configuration.
- Modify the Lambda function code: You can modify the code of your Lambda function to handle the situation where the authorization header is missing from the event. For example, you can check if the authorization header is present in the event headers, and if not, you can use a default or fallback value.
- Use a middleware layer: You can use a middleware layer to intercept the event before it is sent to the Lambda function. The middleware can then add the authorization header if it is missing before forwarding the event to the Lambda function.
Overall, it's important to ensure that the authorization header is consistently included in the event payload. This can help prevent issues with missing headers and ensure that your alerting system works as expected.