这并不是真正的问题,但是我试图了解AWS Amplify正在做的事情。我有两种环境:
| Environments |
| ------------ |
| *beta |
| prod |
当我运行以下命令以添加s3存储和“放大推送”时:
> amplify storage add
? Please select from one of the below mentioned services: Content (Images, audio, video, etc.)
? Please provide a friendly name for your resource that will be used to label this category
in the project: s3b83fd73c
? Please provide bucket name: 245418ebc8605
? Who should have access: Auth and guest users
? What kind of access do you want for Authenticated users? read
? What kind of access do you want for Guest users? read
? Do you want to add a Lambda Trigger for your S3 Bucket? No
Successfully added resource s3b83fd73c locally
我最终得到了一个名为“ 245418ebc8605beta-beta”的S3存储桶。
这个名字怎么来的?我可以理解一次将环境名称附加一次,但是两次?我知道我可以根据需要自行修改CloudFormation模板,但这不是重点。谢谢。