Skip to content

Repo on S3 under AWS Outposts #2659

@roberto-mello

Description

@roberto-mello

I'm trying to create a stanza on S3 under AWS Outposts, but I'm getting an UnsupportedOperation error. I have multiple repos, and trying to use S3 on repo2. I'm using the full ARN for the --repo2-s3-bucket option, since S3 on Outpost doesn't use traditional S3 bucket names.

Something like --repo2-s3-bucket=arn:aws:s3-outposts:us-east-1:123456789012:outpost/op-01234567890abcdef/accesspoint/my-pgbackrest-ap

I was able to connect to the bucket with the aws command line client. Digging around, the UnsupportedOperation error from S3 Outposts typically means pgBackRest is trying to use an S3 API operation that Outposts doesn't support. So I am wondering:

  1. if I missing something
  2. if there's some incompatibility between backrest and outpost I should be aware of.

This is pgbackrest 2.54.2.

Thanks in advance.

$ pgbackrest stanza-create --stanza-db
  2025-07-09 10:02:07.555 P00   INFO: stanza-create command begin 2.53.1: --exec-id=1653-6fafe3 --log-level-console=info   --log-level-file=debug --log-path=/pgbackrest/repo/log --pg1-host=host1 --pg2-host=host2 --pg1-host-ca-file=/etc/pgbackrest/conf.d/~postgres.operator/tls-ca.crt --pg2-host-ca-file=/etc/pgbackrest/conf.d/~postgres.operator/tls-ca.crt --repo-host=host1   --pg1-host-cert-file=/etc/pgbackrest/conf.d/~postgres.operator/client-tls.crt --pg2-host-cert-file=/etc/pgbackrest/conf.d/~postgres.operator/client-tls.crt  --pg1-host-key-file=/etc/pgbackrest/conf.d/~postgres.operator/client-tls.key --pg2-host-key-file=/etc/pgbackrest/conf.d/~postgres.operator/client-tls.key --pg1-host-type=tls  --pg2-host-type=tls --pg1-path=/pgdata/pg16 --pg2-path=/pgdata/pg16 --pg1-port=5432 --pg2-port=5432  --pg1-socket-path=/tmp/postgres --pg2-socket-path=/tmp/postgres --repo1-path=/pgbackrest/repo1 --repo2-path=/pgbackrest/repo2 --repo2-s3-bucket=arn:aws:s3-outposts:us-east-1:<redacted>:outpost/op-<redacted>/accesspoint/<redacted>-op-s3-pgbackrest-ep --repo2-s3-endpoint=s3.outposts.us-east-1.amazonaws.com --repo2-s3-key-type=auto --repo2-s3-region=us-east-1 --repo2-s3-uri-style=path --no-repo2-storage-verify-tls --repo2-type=s3 --stanza=db

INFO: stanza-create for stanza 'db' on repo2
ERROR: [039]: HTTP request failed with 404 (Not Found):
*** Path/Query ***:
GET /arn%3Aaws%3As3-outposts%3Aus-east-1%3A<REDACTED>%3Aoutpost/op-<REDACTED>/accesspoint/<REDACTED>-op-s3-pgbackrest-ep/?delimiter=%2F&list-type=2&prefix=pgbackrest%2Frepo2%2Farchive%2Fdb%2F
*** Request Headers ***: authorization: <redacted>
content-length: 0
host: s3-outposts.us-east-1.amazonaws.com
x-amz-content-sha256: <redacted>
x-amz-date: <redacted> x-amz-security-token: ‹redacted>
*** Response Headers ***: connection: keep-alive content-length: 298
content-type: application/xml date: Wed, 09 Jul 2025 14:26:22 GMT
x-amz-id-2: <redacted>
x-amzn-requestid: <redacted>
*** Response Content ***:
‹?xml version="1.0" encoding="UTF-8"?›
‹ErrorResponse><Error><Code>UnsupportedOperation</Code><Message>Unsupported operation‹/Message></Error><RequestId>redacted</RequestId><HostId>redacted</HostId></ErrorResponse>

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions