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

Go: replace aws-sdk-go with aws-sdk-go-v2 #45

Merged
merged 1 commit into from
Jun 25, 2024
Merged

Conversation

florianl
Copy link
Contributor

AWS announed the deprication of aws-sdk-go. Starting with July 30, 2024 this API will be in maintenance mode and with July 31, 2025 this API will be end of support.
Therefore replace aws-sdk-go with its successor aws-sdk-go-v2.

@florianl florianl requested review from fabled and athre0z June 25, 2024 08:59
@florianl florianl self-assigned this Jun 25, 2024
[AWS](https://aws.amazon.com/blogs/developer/announcing-end-of-support-for-aws-sdk-for-go-v1-on-july-31-2025/)
announed the deprication of aws-sdk-go. Starting with July 30, 2024 this
API will be in maintenance mode and with July 31, 2025 this API will be end
of support.
Therefore replace aws-sdk-go with its successor aws-sdk-go-v2.

Signed-off-by: Florian Lehner <[email protected]>
Copy link
Member

@athre0z athre0z left a comment

Choose a reason for hiding this comment

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

👍

@florianl florianl enabled auto-merge (squash) June 25, 2024 10:13
@@ -33,7 +36,7 @@ func getS3ObjectList(client *s3.S3, bucket, prefix string, itemLimit int) ([]*s3

objects = append(objects, resp.Contents...)

if int64(len(resp.Contents)) != batchSize {
if int32(len(resp.Contents)) != batchSize {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: slightly safer

Suggested change
if int32(len(resp.Contents)) != batchSize {
if len(resp.Contents) != int(batchSize) {

@florianl florianl merged commit ec1639b into main Jun 25, 2024
3 checks passed
@florianl florianl deleted the flo-drop-aws-v1 branch June 25, 2024 13:36
rockdaboot pushed a commit that referenced this pull request Jul 10, 2024
rockdaboot pushed a commit that referenced this pull request Aug 7, 2024
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.

3 participants