---
title: Serverless compute firewall configuration
description: Configure firewalls so Databricks serverless compute can reach your S3, Azure storage, Google Cloud, and other firewalled resources.
canonical_url: https://docs.databricks.com/aws/en/security/network/serverless-network-security/serverless-firewall-config
---

# Serverless compute firewall configuration

Databricks serverless compute connects to your cloud resources through managed network infrastructure. If firewalls protect your cloud resources, you must allow traffic from serverless compute. The configuration method depends on the type of resource:

* **Amazon S3 buckets in your workspace's region**: Use [VPCE OrgPath](https://docs.databricks.com/aws/en/security/network/serverless-network-security/serverless-firewall-config.md#s3-bucket-access-using-vpce-orgpath) condition keys in your S3 bucket policies.

- **Other resources**: Allowlist the [outbound IP addresses](https://docs.databricks.com/aws/en/security/network/serverless-network-security/serverless-firewall-config.md#outbound-ip-addresses-for-other-resources) published by Databricks.

A firewall controls which traffic your resources accept. To control which destinations serverless compute can reach, see [Manage network policies for serverless egress control](https://docs.databricks.com/aws/en/security/network/serverless-network-security/manage-network-policies.md).

> [!NOTE]
>
> If you require dedicated, private connectivity to your resources, use an outbound Private Link connection to reach your resource instead of allowlisting IP addresses. See [Configure private connectivity to resources in your VPC](https://docs.databricks.com/aws/en/security/network/serverless-network-security/pl-to-internal-network.md).

## <a id="s3-bucket-access-using-vpce-orgpath" />Configure S3 bucket access using VPCE OrgPath

Serverless compute communicates with Amazon S3 buckets in the same region as your workspace through a VPC endpoint (VPCE). You can restrict S3 bucket access to only Databricks serverless compute by adding a condition to your S3 bucket policy that uses the `aws:VpceOrgPaths` condition key.

### Databricks serverless OrgPath

```
o-g29axo4oyt/r-gu8r/ou-gu8r-g4va1rkr/ou-gu8r-hvyilq7g/
```

> [!NOTE]
>
> The VPCE OrgPath contains Databricks serverless VPCs. Each VPC has an S3 gateway endpoint. Gateway endpoints are [only available in the region where they are created](https://docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints-s3.html#gateway-endpoint-considerations-s3).

> [!NOTE]
>
> The Databricks serverless OrgPath applies only to commercial AWS regions. It does not apply to Databricks on AWS GovCloud, which runs in a separate AWS partition (`aws-us-gov`). If you use AWS GovCloud, contact your Databricks account team to restrict S3 bucket access from serverless compute.

## <a id="outbound-ip-addresses-for-other-resources" />Configure access to other resources using outbound IP addresses

> [!IMPORTANT]
>
> The published outbound IP addresses change over time, so the supported method is to pull them from the published list and update your allowlist automatically. See [Outbound IP addresses for serverless compute](https://docs.databricks.com/aws/en/resources/ip-domain-region.md#serverless-egress). The legacy list of stable IPs was deprecated on May 25, 2026. Legacy IPs and static allowlists might stop working and cause `403 Forbidden` errors.

For resources other than Amazon S3 or Amazon DynamoDB in the same region as your workspace, serverless compute uses public IP addresses to reach your resources.

To allow serverless to access resources with firewalls, you must add the CIDR blocks published by Databricks to your allowlist. For more information about published outbound IP addresses, see [Outbound IP addresses for serverless compute](https://docs.databricks.com/aws/en/resources/ip-domain-region.md#serverless-egress).

### Find the outbound IP addresses for your environment

1. Download [`ip-ranges.json`](https://www.databricks.com/networking/v1/ip-ranges.json).
2. Filter the JSON to the entries that apply to your workspace. Keep only entries where:
   * `service` is `Databricks`
   * `type` is `outbound`
   * `region` matches your workspace region
   * `platform` matches `aws`
3. Allowlist the `ipv4Prefixes` (CIDR blocks) from the matching entries in your resource firewall.

### <a id="automate-updates-to-keep-your-allowlist-current" />Automate updates to keep your allowlist current

You must automate updates to your allowlist. Databricks changes these IPs over time, so a static, one-time copy eventually breaks serverless connectivity. Updates publish as often as once every 30 days, new IPs become active as soon as 60 days after publication, and new regions are added periodically. To keep your allowlist current:

1. Fetch [`ip-ranges.json`](https://www.databricks.com/networking/v1/ip-ranges.json) on a schedule (for example, every 30 days).
2. Compare its `timestampSeconds` field against your saved copy to detect changes.
3. If it changed, check whether the IPs for your `platform` and `region` changed.
4. Update your firewall allowlist with any new IPs.
5. Save the file for the next comparison.

## Considerations

Review the following considerations before you configure a firewall for serverless compute:

* Configuring a firewall also affects connectivity from classic compute resources. You must also update your resource access rules to allow the IPs for connections from classic compute resources.
* Allow time for firewall rule propagation before testing connectivity from serverless compute.
* Serverless compute connects to your resources from IPv4 addresses. It can't connect to resources that are reachable only over IPv6.

- DynamoDB allowlisting is in Private Preview. Contact your Databricks account team for access.

## Next steps

| Resource                                                                                                                                                             | Description                                                                                               |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
| [Configure private connectivity to resources in your VPC](https://docs.databricks.com/aws/en/security/network/serverless-network-security/pl-to-internal-network.md) | Use PrivateLink to establish secure and isolated access to resources in your VPC from serverless compute. |
| [Manage private endpoint rules](https://docs.databricks.com/aws/en/security/network/serverless-network-security/manage-private-endpoint-rules.md)                    | View, update, and remove private endpoint rules for your network connectivity configuration.              |
