In aws-amplify 5 I used to configure the logic with Storage in a specific way with
export const configureS3forTenant = async (tenantId: string) => {
Storage.configure({
customPrefix: {
public: `${tenantId}/`,
},
});
}
then I additionally map claims from the Idtoken to principal tags and then check that access in bucket policy to grant access to tenant specific folder to all users with that tenat id in custom attribute
I can't find a way to configure a custom prefix name for public in aws-amplify 6.
Are custom prefixes no longer supported in aws-amplify 6?