Describe the bug
amplify push fails after amplify add storage
Screenshots

text version:
| Category | Resource name | Operation | Provider plugin |
| -------- | --------------- | --------- | ----------------- |
| Storage | spobbles3 | Create | awscloudformation |
| Auth | cognitob12444a5 | No Change | awscloudformation |
| Hosting | S3AndCloudFront | No Change | awscloudformation |
? Are you sure you want to continue? Yes
⠴ Updating resources in the cloud. This may take a few minutes...
CREATE_IN_PROGRESS storagespobbles3 AWS::CloudFormation::Stack Mon Apr 08 2019 19:21:55 GMT+0200 (Central European Summer Time)
UPDATE_IN_PROGRESS spobble-20190408163752 AWS::CloudFormation::Stack Mon Apr 08 2019 19:21:50 GMT+0200 (Central European Summer Time) User Initiated
⠸ Updating resources in the cloud. This may take a few minutes...
UPDATE_COMPLETE hostingS3AndCloudFront AWS::CloudFormation::Stack Mon Apr 08 2019 19:21:57 GMT+0200 (Central European Summer Time)
UPDATE_IN_PROGRESS authcognitob12444a5 AWS::CloudFormation::Stack Mon Apr 08 2019 19:21:57 GMT+0200 (Central European Summer Time)
CREATE_FAILED storagespobbles3 AWS::CloudFormation::Stack Mon Apr 08 2019 19:21:56 GMT+0200 (Central European Summer Time) Parameters: [s3PermissionsGuestPublic, s3PermissionsGuestProtected, s3PermissionsGuestPrivate, GuestAllowList, s3PermissionsGuestUploads] must have values
UPDATE_IN_PROGRESS hostingS3AndCloudFront AWS::CloudFormation::Stack Mon Apr 08 2019 19:21:56 GMT+0200 (Central European Summer Time)
⠏ Updating resources in the cloud. This may take a few minutes...
UPDATE_ROLLBACK_IN_PROGRESS spobble-20190408163752 AWS::CloudFormation::Stack Mon Apr 08 2019 19:21:58 GMT+0200 (Central European Summer Time) The following resource(s) failed to create: [storagespobbles3]. The following resource(s) failed to update: [authcognitob12444a5].
UPDATE_FAILED authcognitob12444a5 AWS::CloudFormation::Stack Mon Apr 08 2019 19:21:57 GMT+0200 (Central European Summer Time) Resource update cancelled
⠦ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS hostingS3AndCloudFront AWS::CloudFormation::Stack Mon Apr 08 2019 19:22:27 GMT+0200 (Central European Summer Time)
⠧ Updating resources in the cloud. This may take a few minutes...
UPDATE_ROLLBACK_COMPLETE spobble-20190408163752 AWS::CloudFormation::Stack Mon Apr 08 2019 19:22:30 GMT+0200 (Central European Summer Time)
UPDATE_COMPLETE authcognitob12444a5 AWS::CloudFormation::Stack Mon Apr 08 2019 19:22:30 GMT+0200 (Central European Summer Time)
DELETE_COMPLETE storagespobbles3 AWS::CloudFormation::Stack Mon Apr 08 2019 19:22:30 GMT+0200 (Central European Summer Time)
UPDATE_COMPLETE hostingS3AndCloudFront AWS::CloudFormation::Stack Mon Apr 08 2019 19:22:30 GMT+0200 (Central European Summer Time)
UPDATE_IN_PROGRESS authcognitob12444a5 AWS::CloudFormation::Stack Mon Apr 08 2019 19:22:29 GMT+0200 (Central European Summer Time)
UPDATE_IN_PROGRESS hostingS3AndCloudFront AWS::CloudFormation::Stack Mon Apr 08 2019 19:22:29 GMT+0200 (Central European Summer Time)
UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS spobble-20190408163752 AWS::CloudFormation::Stack Mon Apr 08 2019 19:22:28 GMT+0200 (Central European Summer Time)
UPDATE_COMPLETE hostingS3AndCloudFront AWS::CloudFormation::Stack Mon Apr 08 2019 19:22:27 GMT+0200 (Central European Summer Time)
UPDATE_COMPLETE authcognitob12444a5 AWS::CloudFormation::Stack Mon Apr 08 2019 19:22:27 GMT+0200 (Central European 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...
Following resources failed
✖ An error occurred when pushing the resources to the cloud
Resource is not in the state stackUpdateComplete
Desktop (please complete the following information):
Additional context
> amplify -v
1.5.1
Already tried:
what said in this comment of issue #988
amplify init from the root of the project... the result of amplify push is the same
@AlessandroAnnini thank you for reporting this issue. We have a fix for this in #1218.
Thanks! ⚡️
May I ask what's the ETA for the new official package version?
@AlessandroAnnini We published a new version of the CLI (1.6.0). Please install it -> amplify remove stroage -> amplify add storage -> amplify push
Let me know if you're still seeing this issue.
Everything is working fine now, thanks!
I seem to be having this problem, might be because i'm using yarn?
$ amplify storage push
Current Environment: staging
| Category | Resource name | Operation | Provider plugin |
| -------- | ----------------- | --------- | ----------------- |
| Storage | legals | Create | awscloudformation |
| Function | S3Trigger45f16100 | Create | awscloudformation |
? Are you sure you want to continue? Yes
✖ An error occurred when pushing the resources to the cloud
null
Error: null
at runPackageManager (/Users/***********/.config/yarn/global/node_modules/amplify-provider-awscloudformation/lib/build-resources.js:112:11)
at installDependencies (/Users/***********/.config/yarn/global/node_modules/amplify-provider-awscloudformation/lib/build-resources.js:96:3)
at buildResource (/Users/***********/.config/yarn/global/node_modules/amplify-provider-awscloudformation/lib/build-resources.js:33:5)
at packageResource (/Users/***********/.config/yarn/global/node_modules/amplify-provider-awscloudformation/lib/push-resources.js:215:12)
at packageResources (/Users/***********/.config/yarn/global/node_modules/amplify-provider-awscloudformation/lib/push-resources.js:269:19)
at Object.run (/Users/***********/.config/yarn/global/node_modules/amplify-provider-awscloudformation/lib/push-resources.js:35:10)
at Object.pushResources (/Users/***********/.config/yarn/global/node_modules/amplify-provider-awscloudformation/index.js:32:25)
at providersPush (/Users/***********/.config/yarn/global/node_modules/@aws-amplify/cli/src/extensions/amplify-helpers/push-resources.js:92:42)
at process._tickCallback (internal/process/next_tick.js:68:7)
An error occurred when pushing the storage resource
version:
$ amplify -v
2.0.0
Yea so just to confirm this is purely with yarn i removed my global installing from yarn and installed with npm everything is working fine now
Most helpful comment
@AlessandroAnnini We published a new version of the CLI (1.6.0). Please install it -> amplify remove stroage -> amplify add storage -> amplify push
Let me know if you're still seeing this issue.