-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
provider/aws: Enable updates & versioning for s3_bucket_object #5305
provider/aws: Enable updates & versioning for s3_bucket_object #5305
Conversation
// See https://forums.aws.amazon.com/thread.jspa?threadID=44003 | ||
d.Set("etag", strings.Trim(*resp.ETag, `"`)) | ||
|
||
d.Set("version_id", resp.VersionId) | ||
d.SetId(key) | ||
return nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why doesn't the Put call the Read? I know you didn't change this part but seems like it should
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, I guess I didn't feel the need for the extra API call as the output from Put
call is providing the basic stuff already? But I don't mind adding it 😉
I guess better safe than sorry!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't mind that it's not in place - if you feel it's good then i am good with it
1 small query around Put -> read not happening (as normal convention). But apart form that it looks good and the tests run:
|
- the goal was to allow running tests in parallel and to get rid of global variables in the aws package
52ffa51
to
44246ca
Compare
Added the |
provider/aws: Enable updates & versioning for s3_bucket_object
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
This is closing #3068 and will help finishing #5239
It also introduces a breaking change -
etag
is now returned without quotes - frankly I don't see the "quoted" version being useful in any context.Test plan