Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs to describe how s3:// URLS does in fact support endpoint, region, and profile for upload #2456

Merged
merged 1 commit into from Oct 1, 2018

Conversation

grahamc
Copy link
Member

@grahamc grahamc commented Sep 27, 2018

Improvements to #2319 after realizing I was wrong. cc @copumpkin

I've tested all these with AWS S3 (copy-pasted these exact policies) and also DigitalOcean Spaces.

Rendered: https://screenshotscdn.firefoxusercontent.com/images/aa56ce00-b8a9-4616-b701-8ff50c0fc651.png

@grahamc
Copy link
Member Author

grahamc commented Sep 27, 2018

Also, this one should definitely be backported :)

"Sid": "AlowDirectReads",
"Action": [
"s3:GetObject",
"s3:GetBucketLocation"
Copy link
Member

Choose a reason for hiding this comment

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

GetBucketLocation is no longer needed.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed!

<example><title>Uploading with non-default credential profile for Amazon S3</title>
<para><command>nix copy --to ssh://machine nixpkgs.hello s3://example-bucket?profile=cache-upload</command></para>
<para>Your account will need the following IAM policy to
upload to the cache:</para>
Copy link
Member

Choose a reason for hiding this comment

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

It's a bit strong to say that it needs this IAM policy. Rather the user needs certain rights which may be accomplished via this policy.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed!

@edolstra edolstra merged commit aa5e47b into NixOS:master Oct 1, 2018
@grahamc grahamc deleted the s3-substituters branch October 2, 2018 00:45
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.

None yet

3 participants