Open lyzhang27 opened 2 years ago
Thanks for raising the issue. Its in our roadmap to upgrade our AWS SDK versions but there were some changes that will affect our React Native customers so we held off upgrading it atm. We will provide you with an update once we do upgrade the SDK.
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Storage
Amplify Categories
storage
Environment information
Describe the bug
Storage library does not work with access point node. I reached out to the AWS support regarding the bug and they confirmed. I can see that amplify uses s3client library 3.6.1; when I used the @aws-sdk/client-s3 v.3.45.0 I was successful in calling getObject directly using the sdk. This was the error received when I used the ampilfy storage.get with the older @aws-sdk/client-s3:
bucketHostnameUtils.ts:91 Uncaught (in promise) Error: Expect 's3' or 's3-outposts' in ARN service component
Expected behavior
Successfully make a Storage.get() call to the access point as the bucket name in the initialization of the amplify.config.
Reproduction steps
tutorial.txt
, { download: true }Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response