AWS Amplify存储和身份验证

时间:2019-04-06 06:01:59

标签: amazon-s3 amazon-cloudformation aws-amplify

我已成功使用amplify init初始化了离子应用程序并将其推送。 之后,我立即运行amplify auth并将其成功推送(使用默认配置文件)。 之后,我尝试添加存储空间:

λ amplify add storage                                                                                                                
? 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: xxxxxstorage1            
? Please provide bucket name: xxxxx5ccb600aeefa4e4b9167802561257cd2                                                                  
? Who should have access: Auth users only                                                                                            
? What kind of access do you want for Authenticated users? create/update, read, delete                                               

,不幸的是,它失败并显示以下输出:

UPDATE_IN_PROGRESS xxxxxx-20190406084211 AWS::CloudFormation::Stack Sat Apr 06 2019 08:51:01 GMT+0300 (GTB Summer Time) User Initiated
- Updating resources in the cloud. This may take a few minutes...

CREATE_IN_PROGRESS storagexxxxxxstorage1 AWS::CloudFormation::Stack Sat Apr 06 2019 08:51:07 GMT+0300 (GTB Summer Time)

UPDATE_IN_PROGRESS authcognito8d241aa3  AWS::CloudFormation::Stack Sat Apr 06 2019 08:51:07 GMT+0300 (GTB Summer Time)

CREATE_FAILED      storagexxxxxxstorage1 AWS::CloudFormation::Stack Sat Apr 06 2019 08:51:08 GMT+0300 (GTB Summer Time) Parameters: [s3PermissionsGuestPublic, s3PermissionsGuestProtected, s3PermissionsGuestPrivate, GuestAllowList, s3PermissionsGuestUploads] must have values
/ Updating resources in the cloud. This may take a few minutes...

UPDATE_COMPLETE             authcognito8d241aa3  AWS::CloudFormation::Stack Sat Apr 06 2019 08:51:08 GMT+0300 (GTB Summer Time)
UPDATE_ROLLBACK_IN_PROGRESS xxxxxx-20190406084211 AWS::CloudFormation::Stack Sat Apr 06 2019 08:51:09 GMT+0300 (GTB Summer Time) The following resource(s) failed to create: [storagexxxxxstorage1].
| Updating resources in the cloud. This may take a few minutes...

UPDATE_IN_PROGRESS                           authcognito8d241aa3  AWS::CloudFormation::Stack Sat Apr 06 2019 08:51:30 GMT+0300 (GTB Summer Time)
UPDATE_COMPLETE                              authcognito8d241aa3  AWS::CloudFormation::Stack Sat Apr 06 2019 08:51:31 GMT+0300 (GTB Summer Time)
UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS xxxxxx-20190406084211 AWS::CloudFormation::Stack Sat Apr 06 2019 08:51:31 GMT+0300 (GTB Summer Time)
\ Updating resources in the cloud. This may take a few minutes...

UPDATE_IN_PROGRESS       authcognito8d241aa3  AWS::CloudFormation::Stack Sat Apr 06 2019 08:51:33 GMT+0300 (GTB Summer Time)
DELETE_COMPLETE          storagexxxxxxxxstorage1 AWS::CloudFormation::Stack Sat Apr 06 2019 08:51:33 GMT+0300 (GTB Summer Time)
UPDATE_COMPLETE          authcognito8d241aa3  AWS::CloudFormation::Stack Sat Apr 06 2019 08:51:33 GMT+0300 (GTB Summer Time)
UPDATE_ROLLBACK_COMPLETE xxxxxxx-20190406084211 AWS::CloudFormation::Stack Sat Apr 06 2019 08:51:34 GMT+0300 (GTB Summer Time)
| Updating resources in the cloud. This may take a few minutes...Error updating cloudformation stack
/ Updating resources in the cloud. This may take a few minutes...

似乎正在尝试使用错误的公共权限创建存储:

2019 08:51:08 GMT+0300 (GTB Summer Time) Parameters: [s3PermissionsGuestPublic, s3PermissionsGuestProtected, s3PermissionsGuestPrivate, GuestAllowList, s3PermissionsGuestUploads] must have values

我使用放大版本:1.5.1

0 个答案:

没有答案