Skip to content

Support --xa-s3 suffix for S3 Express One Zone bucket access points#663

Merged
crepererum merged 1 commit into
apache:mainfrom
pdeva:pdeva/xa-s3-suffix
Mar 19, 2026
Merged

Support --xa-s3 suffix for S3 Express One Zone bucket access points#663
crepererum merged 1 commit into
apache:mainfrom
pdeva:pdeva/xa-s3-suffix

Conversation

@pdeva

@pdeva pdeva commented Mar 16, 2026

Copy link
Copy Markdown
Contributor

Summary

AWS has introduced a new --xa-s3 suffix for S3 Express One Zone directory buckets when used with S3 Access Points (in addition to the existing --x-s3 suffix). For example: eks-staging-k3--use1-az4--xa-s3.

https://aws.amazon.com/about-aws/whats-new/2025/05/amazon-s3-express-one-zone-granular-access-controls-access-points/

Currently parse_bucket_az only recognizes --x-s3, so calling .with_s3_express(true) on a bucket with the --xa-s3 suffix fails with:

Invalid Zone suffix for bucket 'eks-staging-k3--use1-az4--xa-s3'

This PR updates parse_bucket_az to also strip --xa-s3, and adds corresponding test cases.

Test plan

  • Added test cases for --xa-s3 suffix (with and without AZ) to test_parse_bucket_az
  • All existing tests continue to pass

AWS recently introduced a new `--xa-s3` suffix for S3 Express One Zone
directory buckets (in addition to the existing `--x-s3` suffix).
`parse_bucket_az` only recognized `--x-s3`, causing a `ZoneSuffix` error
for buckets using the new suffix.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@pdeva pdeva changed the title Support --xa-s3 suffix for S3 Express One Zone bucket names Support --xa-s3 suffix for S3 Express One Zone bucket access points Mar 16, 2026

@crepererum crepererum left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you

@crepererum crepererum merged commit ebaee78 into apache:main Mar 19, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants