amplify-backend icon indicating copy to clipboard operation
amplify-backend copied to clipboard

Configuring storage to use multiple buckets

Open neil-rubens opened this issue 1 year ago • 1 comments

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

neil-rubens avatar Aug 13 '24 23:08 neil-rubens

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!

josefaidt avatar Aug 14 '24 01:08 josefaidt

Thank you @josefaidt

neil-rubens avatar Aug 23 '24 04:08 neil-rubens

Hey @neil-rubens this is now available as of @aws-amplify/[email protected]. closing 🙂

josefaidt avatar Aug 23 '24 14:08 josefaidt

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/

neil-rubens avatar Sep 21 '24 09:09 neil-rubens