I am developing a android app using AWS as a cloud backend. There is a need where I need to access two different S3 buckets in my android app. AS per the official document AWS recommends to use Amplify framework for android AWS integration. But I can't find any details in the official document https://docs.amplify.aws/lib/storage/getting-started/q/platform/android#provision-backend-storage as to how add/access multiple S3 bucket in a single android application using Amplify.
Amplify Android doesn't support this, right now. If you'd like to see the functionality added, please log a feature request on the project's GitHub repository.
Here are a few alternatives:
Create a third bucket, specifically for your mobile app. Copy/combine the content from your other two buckets into this new bucket. Optionally, set up an even trigger on the source buckets, to automatically copy stuff into the mobile bucket, when new content is added to the source bucket.s
Directly use the AmazonS3Client
from the AWS Mobile SDK, instead.