> For the complete documentation index, see [llms.txt](https://docs.prismacloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.prismacloud.io/content-collections/runtime-security/waas/deploy-waas/serverless.md).

# Deploy WAAS for Serverless

## Create a WAAS rule for serverless

When Serverless Defender is embedded in a function, it offers built-in web application firewall (WAF) capabilities, including protection against:

* SQL injection (SQLi) attacks
* Cross-site scripting (XSS) attacks
* Command injection (CMDi) attacks
* Local file system inclusion (LFI) attacks
* Code injection attacks

**Prerequisites:** You already [embedded Serverless Defender](https://github.com/PaloAltoNetworks/pc-docs-md/tree/main/enterprise-edition/content-collections/runtime-security/install/deploy-defender/serverless/serverless.md) into your function.

WAAS serverless deployment is not supported for the following:

* Azure Serverless defenders
* Some [App Firewall Settings](/content-collections/runtime-security/waas/waas-app-firewall.md) are not available

1. Open Console and go to **Runtime Security > Defend > WAAS > Serverless**.

   <figure><img src="/files/CaHfiQpuH7c8K6gJ53bP" alt="waas deployment types serverless"><figcaption></figcaption></figure>
2. Click **Add rule**.
3. Enter a rule name.
4. Choose the rule **Scope** by specifying the resource collection(s) to which it applies.

   Collections define a combination of functions to which WAAS should attach itself to protect the web application:

   Use [pattern matching](/content-collections/runtime-security/configure/rule-ordering-pattern-matching.md) to precisely target your rule.

   <figure><img src="/files/OvfvvFq5zAYFt0MzDfAb" alt="waas serverless collections"><figcaption></figcaption></figure>
5. Select the protections to enable.

   <figure><img src="/files/0eAtVVkQfLwLmYJH0IPR" alt="waas serverless protections view"><figcaption></figcaption></figure>
6. Select **Alert** or **Prevent**.
7. If necessary, adjust the **Proxy timeout**

   The maximum duration in seconds for reading the entire request, including the body. A 500 error response is returned if a request is not read within the timeout period. For applications dealing with large files, adjusting the proxy timeout is necessary.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.prismacloud.io/content-collections/runtime-security/waas/deploy-waas/serverless.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
