#Multiple S3 Buckets

4 messages · Page 1 of 1 (latest)

whole oasis
#

I would like to know if it is possible to configure Amplify dynamically to use a different S3 bucket based on some flag.

Amplify.configure({
    Auth: {
        Cognito: {
            identityPoolId: "us-east-1:xxxx",
            allowGuestAccess: true,
        },
    },
    Storage: {
        S3: {
            bucket: "system-software",
            region: "us-east-1",
        },
    },
});

Like can I make it so that the bucket parameter there is calculated from a VueJS ref/computed property?

slim agate
#

Hi - we’re still working on multiple bucket support but it’s on our roadmap. What’s your use case for different buckets?

whole oasis
#

I'm wondering if Amplify is built on AWS S3 SDK, isn't the feature for multiple buckets inherently built-in? Especially for people like myself who use Amplify as a wrapper rather than the actual tooling that Amplify provides.