Set a depot location in Amazon S3 storage

You can store depot data in Amazon S3-backed storage. You can create an S3 data source as a place to store files for a P4 Server depot. When using S3 for depot storage, specify the S3 connection details in the depot map field.

From 2026.2, you do not need S3Proxy to use Microsoft Azure Blob Storage. Use the native Azure backend instead. To learn more, see Set a depot location in Azure Blob Storage.

Create a depot specification that sets the address field to map to the S3 datasource. The location of the S3 bucket and the credentials are stored in the depot specification on a per-depot basis using the Address field.

Consider the following options:

This feature is supported for depots of all types except remote depots. The central server The one server that is innermost in a multi-server deployment. In the server specification form field for Services, the central server might be specified as “standard” or “commit-server”. If edge servers are part of the multi-server deployment, the central server must be a commit server. See also 'upstream server'., each replica A P4 Server that automatically maintains a full or partial copy of the central server's metadata and that might contain related file content. The replica copies by using 'p4 pull' or 'p4 journalcopy'. A replica can be used as a backup server for disaster recovery., standby, and edge server A server that is part of a commit-edge environment that can independently support work in progress for locally-bound clients, thereby reducing the load on the commit server. must be able to resolve to the same S3 bucket that is defined in the depot specification.

Depending on factors such as network latency and bandwidth, you might not find S3 buckets to perform well enough to be practical.

UTF-8 Mapping for high-ASCII characters

For non-Unicode servers, archive files uploaded to S3 have any high-ASCII characters in their filenames converted to UTF-8. In previous releases, this conversion used ISO-8859. However, ISO-8859 includes a range of control characters that are not valid for some S3 implementations.

In 2026.2, the conversion has been changed to Windows-1252 (CP1252). CP1252 is largely equivalent to ISO-8859 but maps those non-printable control characters to printable characters instead. A small number of characters remain unmapped in CP1252 and are handled using Windows-1251 (CP1251).

If a filename contains a high-ASCII character that falls within the remapped range, P4D first checks the file's new mapped location. If the file is not found, P4D also checks the location generated by the previous mapping method to maintain access to existing archives stored in S3.

This fallback behavior helps preserve access to existing S3 archives that were stored using the filename conversion method used in earlier releases.

In this section: