简体   繁体   中英

Amplify Storage put and S3 ManageUpload

Hi Stackoverflow folks,

I have lots of queries regarding differences between Amplify Storage and S3 SDK usage for uploading files to AWS.

I already have added the discussion here for reference - https://github.com/aws-amplify/amplify-js/discussions/8973

I would be glad if you visit the link and understand my query and let me know your answers. Thanks in advance.

For your question given the examples on github:

S3 SDK wraps around AWS API for S3 and uploads based on IAM policy (and bucket ACL).

Amplify Storage uses cognito auth, and cognito as access to S3 and uses a service role to gain access to pass the file to S3.

Amplify Storage would be a tiny bit slower in this case, because of the intermediate auth, but mostly the same.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM