Temporalio.Extensions.Aws.S3Driver 1.22.0

Prefix Reserved
dotnet add package Temporalio.Extensions.Aws.S3Driver --version 1.22.0
                    
NuGet\Install-Package Temporalio.Extensions.Aws.S3Driver -Version 1.22.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Temporalio.Extensions.Aws.S3Driver" Version="1.22.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Temporalio.Extensions.Aws.S3Driver" Version="1.22.0" />
                    
Directory.Packages.props
<PackageReference Include="Temporalio.Extensions.Aws.S3Driver" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Temporalio.Extensions.Aws.S3Driver --version 1.22.0
                    
#r "nuget: Temporalio.Extensions.Aws.S3Driver, 1.22.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Temporalio.Extensions.Aws.S3Driver@1.22.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Temporalio.Extensions.Aws.S3Driver&version=1.22.0
                    
Install as a Cake Addin
#tool nuget:?package=Temporalio.Extensions.Aws.S3Driver&version=1.22.0
                    
Install as a Cake Tool

Amazon S3 External Storage Driver

The Amazon S3 storage driver is experimental. Its API may change before it is declared stable.

This extension stores and retrieves Temporal payloads in Amazon S3 using external storage.

It has no AWS dependency. It defines S3StorageDriver and the IS3StorageDriverClient interface, and you supply the S3 client. Use the Temporalio.Extensions.Aws.S3Driver.AwsSdk package for a client backed by the official AWS SDK, or implement IS3StorageDriverClient yourself.

Quick Start

using Amazon.S3;
using Temporalio.Extensions.Aws.S3Driver;
using Temporalio.Extensions.Aws.S3Driver.AwsSdk;

var driver = new S3StorageDriver(
    new AwsSdkS3StorageDriverClient(new AmazonS3Client()),
    "my-temporal-payloads");

To choose the bucket per payload, pass a function instead of a bucket name:

var driver = new S3StorageDriver(
    client,
    (context, payload) => payload.Data.Length > 10 * 1024 * 1024 ? "large-payloads" : "small-payloads");

Required IAM Permissions

Before uploading a payload, the driver checks whether the object already exists with a HeadObject request. That check needs s3:GetObject. It also needs s3:ListBucket, because without it S3 reports a missing object as 403 Forbidden instead of 404 Not Found, and the upload fails.

[
  {
    "Effect": "Allow",
    "Action": ["s3:PutObject", "s3:GetObject"],
    "Resource": "arn:aws:s3:::my-temporal-payloads/*"
  },
  {
    "Effect": "Allow",
    "Action": "s3:ListBucket",
    "Resource": "arn:aws:s3:::my-temporal-payloads"
  }
]

Components that store payloads need all three permissions. Components that only retrieve payloads need only s3:GetObject.

S3 Storage Key Specification

All Temporal S3 drivers generate S3 keys in a consistent manner.

Key format

Workflow key:

v0/ns/{namespace}/wt/{workflow-type}/wi/{workflow-id}/ri/{run-id}/d/{hash-algorithm}/{hex-digest}

Activity key:

v0/ns/{namespace}/at/{activity-type}/ai/{activity-id}/ri/{run-id}/d/{hash-algorithm}/{hex-digest}

Fallback key (unknown target):

v0/d/{hash-algorithm}/{hex-digest}
  • If no namespace, workflow, or activity information is available, the fallback is used.
  • Dynamic path segments are percent-encoded (rules below).
  • Missing values (including a missing run-id) are encoded as null.
  • hex-digest is lower-case SHA-256 hex (64 characters).

Percent-encoding rules

The Temporal SDKs escape anything that isn't listed in S3's safe character set: https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html

Safe Characters:

Alphanumeric characters
  0-9
  a-z
  A-Z

Special characters
  Exclamation point (!)
  Hyphen (-)
  Underscore (_)
  Period (.)
  Asterisk (*)
  Single quotation mark (')
  Opening parenthesis (()
  Closing parenthesis ())

Examples

Workflow key example:

input:
  namespace=payments prod
  workflow-type=ChargeWorkflow
  workflow-id=order+123=abc
  run-id=3f1d6c7a-8b2e-4f7a-9d0a-87a6f95e4d31
  hash-algorithm=sha256
  hex-digest=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08

output:
  v0/ns/payments%20prod/wt/ChargeWorkflow/wi/order%2B123%3Dabc/ri/3f1d6c7a-8b2e-4f7a-9d0a-87a6f95e4d31/d/sha256/9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08

Activity key example:

input:
  namespace=payments prod
  activity-type=Capture/Charge
  activity-id=activity id+42
  run-id=9e1d1fd9-2f8a-4c40-93e2-731f31b9268b
  hash-algorithm=sha256
  hex-digest=2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

output:
  v0/ns/payments%20prod/at/Capture%2FCharge/ai/activity%20id%2B42/ri/9e1d1fd9-2f8a-4c40-93e2-731f31b9268b/d/sha256/2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Temporalio.Extensions.Aws.S3Driver:

Package Downloads
Temporalio.Extensions.Aws.S3Driver.AwsSdk

Experimental AWS SDK client for the Amazon S3 external storage driver for the Temporal .NET SDK

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.22.0 184 11/10/2026