Я успешно инициализировал мое ионное приложение с помощью 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