amplify-backend
amplify-backend copied to clipboard
Configuring storage to use multiple buckets
Environment information
n/a
Description
Is there a way to configuring storage to use multiple buckets. Example on the docs shows only a single bucket:
backend.addOutput({
storage: {
aws_region: "<region>",
bucket_name: "<bucket-name>"
},
});
https://docs.amplify.aws/react/build-a-backend/storage/use-with-custom-s3/#step-2---specify-s3-bucket-in-amplifys-backend-config
Hey @neil-rubens :wave: thanks for raising this! This is not currently supported, but I've marked this as a feature request to evaluate further!
Thank you @josefaidt
Hey @neil-rubens this is now available as of @aws-amplify/[email protected]. closing 🙂
For cross-reference purpose; here is the official docs for this new functionality: https://docs.amplify.aws/react/build-a-backend/storage/set-up-storage/#configure-additional-storage-buckets
see also: https://aws.amazon.com/about-aws/whats-new/2024/08/aws-amplify-multiple-bucket-storage/ https://aws.amazon.com/blogs/mobile/add-multiple-storage-buckets-amplify/