Skip to content

Specify storage class for S3 binary cache uploads #7015

@kotatsuyaki

Description

@kotatsuyaki

I'm creating a private binary cache on Amazon S3, using nix copy to upload closures. To reduce cost, I would like to use the Intelligent-Tiering Storage Class instead of the standard storage class. The nix command currently does not support specifying the storage class (see the PutObjectRequest object constructed here).

Describe the solution you'd like

Support specifying the storage class by using 1) a command line option, or by 2) a URL parameter in the S3 URL.

Describe alternatives you've considered

A workaround to this is to use a 0-day S3 Lifecycle rule to transition the objects to the target tier after their creation. However, doing so incurs some additional cost since lifecycle transitions are not free on AWS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliThe old and/or new command line interfacefeatureFeature request or proposalnew-cliRelating to the "nix" command

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions