Temporal archival to S3 or Google Cloud Storage

Temporal archival moves completed workflow histories out of the namespace retention window into S3 or Google Cloud Storage. This page explains the service and namespace settings, the fixed archival URI, the Docker restriction and the feature's documented maturity.

On this page

When Temporal archival to S3 or Google Cloud Storage keeps histories you still need

If your team needs a workflow's history after the namespace retention period has ended, for an audit, a dispute or an incident investigation, archival is the feature to plan for. Temporal's archival copies closed workflow histories out of the Temporal Service into an object store, S3 or Google Cloud Storage, so they remain available after the live namespace no longer holds them. It is configured on the self-hosted service and then enabled per namespace, which means the history and the archive bucket settings are decisions made at two levels: the server, and each namespace that opts in. Before any production planning, confirm the current maturity of the feature on the Temporal documentation page for archival, because its status is documented as experimental and that status shapes how much weight you can place on it in a control narrative.

Archival does not replace the live retention period, the visibility store or your own data export. Live retention governs how long the Temporal Service keeps histories it can serve directly, and visibility answers search queries about workflows, so an archived history is not automatically searchable in the same way. Archival also does not capture business records your application writes elsewhere, such as payments, approvals or customer messages, which still need their own retention and audit design. Teams that need a durable, queryable record usually combine archival with an export their application controls. Ask whoever will own the bucket which retention, deletion and access rules apply to archived objects, and who can read them, since those rules sit outside Temporal.

Archival options and when each fits

This table compares the four decisions that shape Temporal archival: the service-level enablement, the namespace-level archival settings, the S3 or Google Cloud Storage target, and the retention period. Read each row for what it controls, who sets it and when it fits, and confirm bucket and URI settings against the current configuration reference before you rely on them.

OptionWhat it controlsWho sets itWhen it fits
Service-level archival enablementWhether the Temporal Server can archive histories at all, and which archiver provider is loadedPlatform team, through static server configurationNeeded before any namespace can archive; confirm the exact keys for your server version
Namespace-level archival settingsWhether a given namespace archives closed workflow histories and where they goNamespace owner or platform team, through namespace configurationUse when only some teams need long-term history, so cost and access stay scoped
Amazon S3 as the targetObject storage for archived histories, with access granted through the server's AWS identityPlatform and cloud team, with IAM policy on the bucketFits teams already operating AWS with bucket policies, encryption and lifecycle rules in place
Google Cloud Storage as the targetObject storage for archived histories, with access granted through the server's Google service identityPlatform and cloud team, with IAM on the bucketFits teams already operating Google Cloud with bucket-level controls and retention settings
Bucket and URI settingsBucket name, path format and URI scheme that the server writes toPlatform team, from the current configuration referenceMust be confirmed against the reference for your server version, not copied from older examples
Short retention periodHow long workflow histories stay in the namespace before archived copies become the only recordNamespace owner, based on query and audit needsFits workloads where recent histories are queried often and older ones are rarely needed
Long retention period with high history volumeNamespace storage growth and the number of archived objects written over timeNamespace owner and finance or compliance reviewersPlan storage growth and object counts early, since large volumes raise both storage and retrieval effort
Archival in Docker-based deploymentsWhether the archival setup is supported in the deployment method you chosePlatform team, after reviewing the archival docs for that methodConfirm the Docker restriction in the docs before choosing Docker Compose for archival
Experimental feature statusWhether the feature is covered by stable support expectations in productionPlatform owner and risk reviewersPlan a validation environment and a fallback before depending on archival for compliance records

Archival starts only after retention expires, and credentials cross one boundary

The path starts when a workflow closes and its history stays in the namespace until the namespace retention period ends. At that point the Temporal Server runs the archival step, which writes the history to an object storage bucket in a cloud account you control. The trust boundary sits between the Temporal cluster and that account, and the bucket write credentials are the only thing that crosses it. Check which identity the server uses, what that identity is allowed to do in the bucket, and who owns the bucket and its keys.

Closed histories move to the bucket only after namespace retention expires.

How to enable archival on a self-hosted Temporal service

This sequence moves a self-hosted Temporal service from an unarchived state to one where completed workflow histories are copied to S3 or Google Cloud Storage after namespace retention ends and can be read back. Each step ends with a check that proves the previous step worked.

  1. Confirm the server version and archival documentation

    The platform team records the Temporal Server version in production and reads the archival documentation for that exact version, because the feature is experimental and its settings can change between releases. If the cluster is behind the release line you plan to run, follow the upgrade guide and move one minor version at a time, to the latest patch of each minor line first. Record the version, the matching docs page and the deployment method (Docker Compose, binaries, Helm or a custom Go build). The step is done when that record exists and the team has agreed on it.

  2. Create the bucket with service-only access

    The cloud or infrastructure team creates an S3 bucket or Google Cloud Storage bucket for archived histories and blocks public access on it. Grant read and write permissions to the Temporal service identity, and grant read-only access to the named operators who will run audits or restores. Confirm with the storage provider's documentation which encryption, retention and object lock options apply in your account. The check is a policy or IAM listing that shows only the service identity and named operators, plus a denied anonymous request to the bucket.

  3. Set the service-level archival configuration

    The platform engineer adds the archival block to the server's static configuration for the history service, selecting S3 or Google Cloud Storage and naming the bucket and region. Use the configuration keys and the archival URI format defined in the documentation for your version, and confirm the URI format before choosing the bucket name. Keep the bucket name in the configuration repository and let the service identity supply credentials, so no keys are stored in files. The check is that the change renders in your deployment tooling and that the review diff shows only the archival block changed.

  4. Restart services and confirm archival starts

    The operator rolls the configuration change out to the Temporal services in the order your deployment method requires and watches each service come back healthy. Review the server logs for errors about archival provider setup, credentials or bucket access. Confirm with your version's documentation that no further service-level step is needed before namespaces can be enabled. The step is complete when all services report healthy and the logs show no archival startup errors.

  5. Enable archival on each target namespace

    The operator enables archival on each namespace that needs it, using the Temporal CLI or API methods documented for the version in use, and sets the namespace archival URI to the bucket. Archival applies only after a workflow leaves the namespace retention period, so the team also records each namespace's retention setting and the owner who approved it. The check is a namespace description for every listed namespace showing archival enabled and the expected bucket. Namespaces not on the list stay unchanged.

  6. Run a test workflow and check the bucket layout

    In a non-production namespace with archival enabled, the team starts a short test workflow, lets it complete, and waits until it has passed the namespace retention period. Because the timing depends on the retention setting and the version's behavior, the team confirms the expected wait with the documentation before relying on it. The check is a bucket listing that shows an object under the expected prefix for that namespace and workflow, and the team saves the object path for the next step.

  7. Read the archived history back

    The operator reads the archived history of the test workflow through the archival read path in the CLI or API for the version, after the workflow has left active retention. Compare the workflow ID, run ID and event count with the completed execution in the source namespace. Because the default authorizer allows every API request, the team must configure authorization before any user can read archived histories. The step is done when the read matches the source execution and the access rules have been tested with a non-operator identity.

How archival setup differs across deployment methods

The Helm chart runs the Temporal Server services in individual Kubernetes pods, so archival settings are usually supplied as chart values. The chart renders those values into the server configuration, and the pods read it when they start. A successful helm upgrade only means the release was applied, so the change is confirmed later, once the pods have rolled over.

  • Chart values: set archival options in the values file for the release, then confirm the value names for your chart version in the deployment docs.
  • Bucket credentials: supply access through a Kubernetes Secret or workload identity, and confirm the mechanism with your storage provider's documentation.
  • Chart and server compatibility: Helm chart versions below 0.73.1 do not work with server images 1.30 and later, so check the chart version before any archival change.
  • Per-service rollout: the frontend, history, matching and worker pods must each restart with the new configuration, so confirm every rollout completes.
  • Namespace settings: configure archival at the namespace level after the service is running, then check the namespace's archival state.

After each change, confirm the rendered ConfigMap contains the archival settings, that all pods restarted, and that a closed workflow in a test namespace reaches the bucket.

Why the fixed archival URI and the Docker restriction shape the design

The archival URI is set once at the service or namespace level and is not something you adjust per environment later, so the bucket layout must be settled before archival is enabled. Decide whether production, staging and test clusters will each have their own bucket, whether a single bucket will hold several namespaces under distinct prefixes, and how the bucket name will identify the cluster and region. Each choice affects who can read archived histories, how lifecycle and retention rules are applied, and whether a restored cluster can find the history it needs. Plan recovery too: if a cluster is rebuilt or moved to another account or region, confirm whether the archival URI can point to the existing bucket without rewriting archived data. Before you write any configuration, check the exact URI format and the bucket and provider options on the current Temporal archival documentation, since the format is the element most likely to be misread from older examples.

The Docker restriction matters if your Temporal Server runs in containers outside Kubernetes, for example on Docker Compose hosts or on virtual machines managed by a container runtime. Teams often assume that a working Compose file for development carries over to production, but archival depends on how the container gets its S3 or Google Cloud Storage credentials, its network path to the bucket, and its configuration files. Confirm on the Temporal documentation whether archival is supported in your deployment method and what it requires, and if it is not supported or is limited, decide early whether you will move that service to Kubernetes or Helm before archival becomes a production need. Also confirm how the server authenticates to the bucket, because a credential mechanism that works on a developer laptop may not be available to a container host in your environment.

Security controls for the archive bucket and archived histories

Archival moves workflow histories out of the namespace retention period and into a bucket your team must secure on its own. The controls below cover the storage layer, the data inside the histories, and the Temporal frontend that can still reach them. Confirm each one with your storage provider and against your Temporal version before enabling archival.

Bucket access scoped to the service identity

The archive bucket should accept writes only from the identity the Temporal Server uses for archival, and reads only from identities that need archived histories. Grant the service identity the narrowest object actions it needs on the archive path, and block public access at the bucket level. Confirm the exact permissions your provider requires for archival, since this page does not list them. Review the policy whenever the server's identity or the bucket name changes.

Encryption at rest and in transit

Archived histories hold workflow inputs, results and failure details, so the bucket needs encryption at rest and encrypted connections for every request. Decide whether the provider's default keys are acceptable or whether your key management service must own and rotate the keys. Confirm that the bucket policy rejects unencrypted requests and that the Temporal Server reaches the bucket over an encrypted endpoint. Ask the provider for the settings that apply to your region and account.

Personal and regulated data in histories

Archived histories keep whatever the workflow recorded, so a payload with personal or regulated data stays in the bucket after namespace retention ends. Archival extends how long that data exists, which can conflict with a deletion or retention schedule. Classify workflow payloads before enabling archival, then decide which fields must never enter history and how deletion requests will reach archived objects. Confirm the deletion process with your privacy and compliance owners before go-live.

Payload encryption with custom codecs

A custom codec encrypts payloads in the client before they reach the server, so the persistence layer and the archive store hold only ciphertext. The Temporal security documentation describes payload encryption through custom codecs and a codec server, which keeps decryption keys with the team that operates them. Confirm which fields the codec covers, how keys rotate, and who can decode in the Web UI and CLI. Test that an archived history reads as ciphertext before you rely on the control.

Temporal security docs

Read access to archived objects

Anyone who can read the bucket can read archived histories, whatever access settings Temporal applies to its own API. Restrict read, list and delete roles to the operators who handle investigations, and grant them through named groups rather than individual keys. Enable object access logging where your provider supports it, and confirm that bucket retention rules match the retention commitments your organization has made.

Frontend authorization and the noopAuthorizer

If no Authorizer is configured, self-hosted Temporal uses the default noopAuthorizer, which allows every API request with no authentication or access control. Anyone who can reach the frontend could therefore retrieve archived histories through the API, so the archive is only as protected as the frontend. Configure an Authorizer and a ClaimMapper, enable mTLS, and keep the services off the public internet before turning on archival.

What buyers ask about Temporal archival before hiring help

How much effort does Temporal archival to S3 or Google Cloud Storage take to set up?

The effort depends mainly on how many namespaces need archival, how your cloud accounts and buckets are organized, and how many teams must approve the bucket policy. Archival is configured at the service level and again for each namespace, so every namespace that keeps histories needs its own decision and test. The exact configuration keys and archival URI format come from Temporal's documentation for the server version you run, so confirm them against that version before planning. Two restrictions also add work: the archival URI is fixed in its format, and Docker-based deployments have a documented limitation, so confirm whether your deployment method is affected. Because the feature is documented as experimental, your team should also decide whether it fits your risk tolerance before production use. Ask any provider to list the namespaces, bucket layout and test steps in writing before you compare quotes.

What does it cost to run an archival bucket, and is the cost one-time or recurring?

Most of the running cost is recurring and comes from your cloud provider, not from Temporal. Storage, request and data transfer charges on S3 or Google Cloud Storage are billed monthly and grow with the volume of workflow history you archive and how long you keep it. Setup labor, such as configuring the server, writing bucket policies and running restore tests, is a one-time cost. Temporal's server is licensed under the MIT license, so self-hosted use has no server license fee, but the Temporal Cloud pricing page covers a separate managed service and does not price archival setup. To estimate the bucket bill, ask your team to measure history volume per namespace and retention period, then apply your provider's current price sheet. Ask any implementation partner to separate one-time setup fees from ongoing operating costs in the quote.

How long does Temporal archival setup take, and what sets the duration?

The duration is set by the number of namespaces in scope, the number of environments that must be configured and tested (such as development, staging and production), and the approval cycle for bucket policies and cloud identity roles. Testing takes time because you should confirm that archived histories can be read back, not only that files appear in the bucket. Upgrade timing can also shift the schedule, since Temporal recommends upgrading one minor version at a time. No duration is supplied for this topic, so ask for a timeline that lists each namespace, each environment, each approval gate and each test. Any estimate without those inputs is not reliable. A fixed-scope agreement gives you a written timeline before work starts.

What must our team provide before Temporal archival work starts?

Your team should provide cloud accounts where the implementer can create buckets and identity roles under your security standards, plus named approvers for the bucket policy and access model. You also need a non-production Temporal environment where archival can be configured and tested before any production namespace changes. Test workflows with representative history sizes help confirm that archived data is complete and readable. Access to the deployment configuration, such as Helm values, Docker Compose files or server config files, is required, along with a named owner for each namespace in scope. Confirm whether your payloads are encrypted with a custom codec, because that affects what is stored in the bucket and who needs keys to read it.

Can an internal platform team set up Temporal archival without outside help?

An internal team can do the work if it already runs Temporal Server, understands cloud identity and bucket policies, and has time to test restores in a non-production environment. The main risks are reading the configuration documentation for your exact server version, handling the fixed archival URI format correctly, and planning around the experimental status. Outside help is most useful for an independent design review, a documented test plan with evidence, and a fixed-scope delivery with written deliverables. DeployOpen implements and documents self-hosted platforms inside your own cloud accounts or data centers, so the work stays under your control either way. Decide based on the skills and capacity your team has available for the test and approval cycle.

How does Temporal archival affect future server upgrades?

Archival settings must be checked at every server upgrade, because the upgrade path is strict. Temporal recommends moving one minor version at a time, to the latest patch of the current minor first, since backward compatibility is guaranteed only between two successive minor versions. When release notes call for it, schema upgrades must run before server upgrades. Helm chart versions below 0.73.1 do not work with server images 1.30 and later, so chart versions must be checked alongside the server version. Plan a restore test after each upgrade to confirm archived histories remain readable. Ask any partner to include upgrade testing for archival in the scope and to name who signs off each step.

Do archived Temporal histories meet a specific retention requirement?

Archival keeps workflow histories beyond the namespace retention period, but whether that satisfies a particular regulation depends on your requirement and on how the archive is configured and controlled. Check the retention period your rule sets, what history content is archived, who can read and delete objects in the bucket, whether encryption keys are managed correctly, and how deletion is handled at the end of the retention period. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies make that determination. Ask your compliance owner to write the requirement down before design begins.

Who can read archived workflow data, and how is it protected in the bucket?

Archived histories are only as protected as the bucket and the identities that can reach it. Treat the archive as sensitive data: restrict bucket access to named roles, enable the encryption features your cloud provider offers, and log access. Temporal's self-hosted security model matters here too. If no Authorizer is configured, the default noopAuthorizer allows every API request with no authentication or access control, so the Temporal API must be secured separately. Payload encryption through custom codecs can keep workflow data unreadable in storage without the keys, so confirm how your payloads are encoded before archival starts. Review the Temporal self-hosted security documentation with your security team before approving the design.

How DeployOpen scopes and delivers Temporal archival

DeployOpen plans and builds Temporal archival to S3 or Google Cloud Storage inside infrastructure you control, as part of a self-hosted Temporal Service. The work covers the bucket and credential design, service and namespace configuration, a fixed archival URI decision, and the testing and documentation your operators need to run it.

How we scope

  • Confirm which Temporal Server version, persistence store and deployment method the archival setup must fit
  • Record the retention needs per namespace and which workflow histories must be archived or kept out of archival
  • Agree in writing whether the archival feature is accepted as experimental for your production use
  • Define bucket ownership, region, encryption and access roles on S3 or Google Cloud Storage before build starts

How we build

  • Configure archival at the service level and enable it per namespace according to the agreed retention design
  • Set the archival URI and credentials so they follow the fixed format and your identity controls
  • Confirm the Docker restriction applies to your deployment and plan an alternative runtime where it does not
  • Test archival and retrieval of closed workflow histories in a non-production namespace before any rollout

How we hand over

  • Deliver configuration files, namespace settings and bucket policies as versioned, reviewable artifacts
  • Document the archival runbook, including retention checks, failure alerts and recovery steps for operators
  • Provide a record of test results showing archival, retrieval and access restrictions for your review
  • Walk your platform and security teams through the design decisions and the experimental status of the feature

How we support

  • Agree a fixed-scope engagement with written deliverables, timelines and acceptance criteria before work begins
  • Plan upgrades of the Temporal Server so archival settings are rechecked against each release's notes
  • Offer ongoing support, upgrades and continuous testing for archival as a retainer when your team wants it
  • Quote follows from the written scope, so ask for line items covering design, build, testing and handover

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.