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

add ... to s3_upload_yaml to fix issue noted in #625 #652

Merged
merged 2 commits into from
Sep 12, 2022

Conversation

fh-mthomson
Copy link
Contributor

Fixes issue discussed in #625 (comment)

@fh-mthomson fh-mthomson changed the title add ... to s3_upload_yaml to fix issue when per #625 add ... to s3_upload_yaml to fix issue noted in #625 Sep 10, 2022
@juliasilge
Copy link
Member

Thank you so much for this @fh-mthomson! 🙌

Can I make sure I am understanding this super clearly? This change will make it so both the main file (such as .rds or .csv) and the data.txt are uploaded with the same arguments/options for S3 PutObject? That seems like the right behavior to me, and it's hard to imagine a situation where that isn't what folks want.

@fh-mthomson
Copy link
Contributor Author

Exactly! Since the bucket to which I'm writing has SSE enabled, trying to write the data.txt file resulted in permissions errors when trying to call put_object() but without the ServerSideEncryption specification available.

So, I think it's reasonable to expect that S3-level options should be passed through to all instances of put_object() since each call is inherently within the same bucket/prefix.

Copy link
Member

@juliasilge juliasilge left a comment

Choose a reason for hiding this comment

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

That makes sense! Thank you so much 🙏

@juliasilge juliasilge merged commit 97b5614 into rstudio:main Sep 12, 2022
@github-actions
Copy link

This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Sep 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants