-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
[WIP] Add additional checksum algorithms in aws_s3_object
resource and data source
#27370
[WIP] Add additional checksum algorithms in aws_s3_object
resource and data source
#27370
Conversation
1. Add arguments checksum_algorithm to aws_s3_object resource. 2. Add attributes checksum_crc32, checksum_crc32c, checksum_sha1 and checksum_sha256 to aws_s3_object resource. 3. Calculate checksum from value of argument checksum_algorithm. 4. Enable ChecksumMode at s3.HeadObjectInput in order to retrieve checksum.
…ksum_sha1 and checksum_sha256.
Community NoteVoting for Prioritization
For Submitters
|
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.
Welcome @mediba-h-sugawara 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTOR guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
Speaking as a user of this provider and an interested third party, this looks like a nice addition. That being said, there were a couple of things that surprised me about this PR. The first thing was the addition of code in the provider itself to calculate the checksums for the new algorithms. Based on the linked blog post, it looks like this functionality was added to the SDKs. Indeed, it looks like it was added to the AWS SDK for Go V2 in aws/aws-sdk-go-v2#1600, but it does not seem to have been added to the V1 SDK. Since the The other thing that I noticed is that this PR does not pass along user-provided values for the I think if these files were updated to use the V2 SDK, the |
Thanks for your comment! 👍 |
aws_s3_object
resource and data source aws_s3_object
resource and data source
Hopefully that dependency update is a straightforward change to make with no unforseen downsides. The maintainers would know best if there's a specific reason that change has not been made previously. It looks like you may also want to add |
hey @mediba-h-sugawara do you have some news? |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
Add additional checksum algorithms (
CRC32
,CRC32C
,SHA1
,SHA256
) to S3 object resource and data source.Relations
Related #23901
Related #25647
References
Output from Acceptance Testing