【发布时间】:2020-08-01 09:38:59
【问题描述】:
首先,我想在我的放大项目中设置多个 S3 存储。
但这暂时是不允许的(amplify-cli 显示Amazon S3 storage was already added to your project.)
我通过创建分区为我的用例找到了可能的解决方案。
这在下面的链接中有所提及。
https://github.com/aws-amplify/amplify-cli/issues/1923#issuecomment-516508923
这样说。
As a best practice, the Amplify Framwork allows you to have multiple prefixes in the bucket as a best practice instead of having multiple buckets.
You could partition your bucket by prefixes like the following:
`mybucket/partition1` and `mybucket/partition2` which can potentially have different auth policies and lambda triggers.
但它没有说明如何设置分区以及如何使用它。
那么,谁能解释一下怎么做?
【问题讨论】:
标签: amazon-s3 aws-amplify