Skip to content

Upgrade s3 sdk without specifying services

Allison Browne requested to merge ab-upgrade-s3-sdk into master

What does this MR do?

Upgrades aws-sdk to v3 to take advantage of upload_stream in this MR: !31269 (diffs)

https://github.com/winebarrel/faraday_middleware-aws-sigv4#upgrading-from-faraday_middleware-aws-signers-v4

Using the Service Specific Gems Each of the instructions above suggested using version 3 of the aws-sdk gem. This will work and is the shortest path to upgrading. It will however install 75+ service specific gems. You may choose to replace your dependency on the aws-sdk gem with service specific gems.

If my application depends on Amazon DynamoDB and Amazon S3, I could make the following changes:

In my Gemfile:

#gem 'aws-sdk', '~> 3' gem 'aws-sdk-dynamodb', '~> 1' gem 'aws-sdk-s3', '~> 1' In my code:

#require 'aws-sdk' require 'aws-sdk-s3' require 'aws-sdk-dynamodb' If you are a library maintainer, and you depend on the AWS SDK for Ruby, you should use service specific gems. Do no force your users to install every AWS service gem if you only depend on one.

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Allison Browne

Merge request reports

Loading