Skip to content

Versioned S3 URIs #13955

@hacker1024

Description

@hacker1024

Is your feature request related to a problem?

S3 buckets can support versioned objects, which is useful to ensure that assets do not change unexpectedly.

At the moment, though, there is no way to download a specific version of an S3 object.

Proposed solution

A versionId parameter would be great:

builtins.fetchurl {
  name = "example";
  url = "s3://my-bucket?region=my-region&versionId=XXX";
};

This would be stored in ParsedS3URL and then given to S3Helper::getObject, which would then use GetObjectRequest::WithVersionId() when building the request.

Alternative solutions

None exist (short of using some sort of custom proxy server to inject this as an S3 endpoint).

Additional context

Checklist


Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureFeature request or proposal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions