amplify-cli: [amplify add storage] - Resource is not in the state stackUpdateComplete
Describe the bug
After amplify add storage, amplify push throws this error:
**
Resource is not in the state stackUpdateComplete
**
To Reproduce Steps to reproduce the behavior:
- Execute
amplify add storage - Execute
amplify push - Push fails and throws the above error.
- See error
Expected behavior Push should complete successfully
Screenshots 192-168-1-102:pna-multi-env_copy ahmni01$ 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: attachmentpnamar0503 ? Please provide bucket name: attachmentpnamar0503s3bucket ? Who should have access: Auth users only ? What kind of access do you want for Authenticated users read/write Successfully added resource attachmentpnamar0503 locally
192-168-1-102:pna-multi-env_copy ahmni01$ amplify push
Current Environment: devfirst
| Category | Resource name | Operation | Provider plugin |
|---|---|---|---|
| Storage | attachmentpnamar0503 | Create | awscloudformation |
| Hosting | S3AndCloudFront | No Change | awscloudformation |
| Auth | cognito8146221a | No Change | awscloudformation |
| Storage | ordersmarch0503 | No Change | awscloudformation |
| Storage | activitiesmarch0503 | No Change | awscloudformation |
| Function | pnamarch0503function | No Change | awscloudformation |
| Function | pnamarch0503activityfunction | No Change | awscloudformation |
| Api | pnamarch0503 | No Change | awscloudformation |
| Api | pnamarch0503activity | No Change | awscloudformation |
| ? Are you sure you want to continue? Yes | |||
| ⠇ Updating resources in the cloud. This may take a few minutes… |
UPDATE_IN_PROGRESS S3Bucket AWS::S3::Bucket Wed May 22 2019 14:04:27 GMT+1000 (Australian Eastern Standard Time) Requested update requires the creation of a new physical resource; hence creating one.
UPDATE_FAILED S3Bucket AWS::S3::Bucket Wed May 22 2019 14:04:27 GMT+1000 (Australian Eastern Standard Time) pnamarch05-06-devfirst already exists in stack arn:aws:cloudformation:eu-west-1:478576439851:stack/pnamar05first-20190511104149-hostingS3AndCloudFront-1JGA1AFF5RCIA/9de8ea90-7386-11e9-9701-02f49d781af6
UPDATE_ROLLBACK_IN_PROGRESS pnamar05first-20190509182634-hostingS3AndCloudFront-UCO7ZL6OJIZS AWS::CloudFormation::Stack Wed May 22 2019 14:04:28 GMT+1000 (Australian Eastern Standard Time) The following resource(s) failed to update: [S3Bucket].
UPDATE_ROLLBACK_IN_PROGRESS pnamar05first-20190509182634-authcognito8146221a-12ZOVT03QH2PD AWS::CloudFormation::Stack Wed May 22 2019 14:04:29 GMT+1000 (Australian Eastern Standard Time) Initiated by parent stack
⠇ Updating resources in the cloud. This may take a few minutes…
UPDATE_IN_PROGRESS DynamoDBTable AWS::DynamoDB::Table Wed May 22 2019 14:04:26 GMT+1000 (Australian Eastern Standard Time) Requested update requires the creation of a new physical resource; hence creating one.
UPDATE_FAILED DynamoDBTable AWS::DynamoDB::Table Wed May 22 2019 14:04:26 GMT+1000 (Australian Eastern Standard Time) activitiesmarch0503-devfirst already exists in stack arn:aws:cloudformation:eu-west-1:478576439851:stack/pnamar05first-20190511104149-storageactivitiesmarch0503-3BJQ34B737FB/9ddfe9e0-7386-11e9-b49e-0aac5439e4be
UPDATE_ROLLBACK_IN_PROGRESS pnamar05first-20190509182634-storageactivitiesmarch0503-1KNWL68WBRA94 AWS::CloudFormation::Stack Wed May 22 2019 14:04:27 GMT+1000 (Australian Eastern Standard Time) The following resource(s) failed to update: [DynamoDBTable].
UPDATE_FAILED storageactivitiesmarch0503 AWS::CloudFormation::Stack Wed May 22 2019 14:04:28 GMT+1000 (Australian Eastern Standard Time) Embedded stack arn:aws:cloudformation:eu-west-1:478576439851:stack/pnamar05first-20190509182634-storageactivitiesmarch0503-1KNWL68WBRA94/89920780-7236-11e9-b69b-024e38e0666a was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to update: [DynamoDBTable].
UPDATE_FAILED storageordersmarch0503 AWS::CloudFormation::Stack Wed May 22 2019 14:04:28 GMT+1000 (Australian Eastern Standard Time) Embedded stack arn:aws:cloudformation:eu-west-1:478576439851:stack/pnamar05first-20190509182634-storageordersmarch0503-1RLVMFGWLTCIX/89c7bd80-7236-11e9-ac7e-0a99a68566c4 was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to update: [DynamoDBTable].
UPDATE_FAILED hostingS3AndCloudFront AWS::CloudFormation::Stack Wed May 22 2019 14:04:28 GMT+1000 (Australian Eastern Standard Time) Embedded stack arn:aws:cloudformation:eu-west-1:478576439851:stack/pnamar05first-20190509182634-hostingS3AndCloudFront-UCO7ZL6OJIZS/8970c3e0-7236-11e9-8998-02f48c625dae was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to update: [S3Bucket].
CREATE_FAILED storageattachmentpnamar0503 AWS::CloudFormation::Stack Wed May 22 2019 14:04:29 GMT+1000 (Australian Eastern Standard Time) Resource creation cancelled
⠏ Updating resources in the cloud. This may take a few minutes…
UPDATE_FAILED authcognito8146221a AWS::CloudFormation::Stack Wed May 22 2019 14:04:40 GMT+1000 (Australian Eastern Standard Time) Resource update cancelled
UPDATE_ROLLBACK_IN_PROGRESS pnamar05first-20190509182634 AWS::CloudFormation::Stack Wed May 22 2019 14:04:41 GMT+1000 (Australian Eastern Standard Time) The following resource(s) failed to create: [storageattachmentpnamar0503]. The following resource(s) failed to update: [authcognito8146221a, hostingS3AndCloudFront, storageordersmarch0503, storageactivitiesmarch0503].
CREATE_COMPLETE S3Bucket AWS::S3::Bucket Wed May 22 2019 14:04:44 GMT+1000 (Australian Eastern Standard Time)
CREATE_IN_PROGRESS S3AuthPolicyRW AWS::IAM::Policy Wed May 22 2019 14:04:48 GMT+1000 (Australian Eastern Standard Time)
CREATE_IN_PROGRESS S3AuthPolicyRW AWS::IAM::Policy Wed May 22 2019 14:04:49 GMT+1000 (Australian Eastern Standard Time) Resource creation Initiated
⠧ Updating resources in the cloud. This may take a few minutes…
CREATE_COMPLETE S3AuthPolicyRW AWS::IAM::Policy Wed May 22 2019 14:04:57 GMT+1000 (Australian Eastern Standard Time) UPDATE_IN_PROGRESS hostingS3AndCloudFront AWS::CloudFormation::Stack Wed May 22 2019 14:04:58 GMT+1000 (Australian Eastern Standard Time) UPDATE_IN_PROGRESS authcognito8146221a AWS::CloudFormation::Stack Wed May 22 2019 14:04:58 GMT+1000 (Australian Eastern Standard Time) UPDATE_IN_PROGRESS storageordersmarch0503 AWS::CloudFormation::Stack Wed May 22 2019 14:04:58 GMT+1000 (Australian Eastern Standard Time) UPDATE_IN_PROGRESS storageactivitiesmarch0503 AWS::CloudFormation::Stack Wed May 22 2019 14:04:58 GMT+1000 (Australian Eastern Standard Time) CREATE_COMPLETE pnamar05first-20190509182634-storageattachmentpnamar0503-1OGSOC223CZ27 AWS::CloudFormation::Stack Wed May 22 2019 14:05:00 GMT+1000 (Australian Eastern Standard Time) ⠸ Updating resources in the cloud. This may take a few minutes…
UPDATE_COMPLETE DynamoDBTable AWS::DynamoDB::Table Wed May 22 2019 14:05:28 GMT+1000 (Australian Eastern Standard Time) UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS pnamar05first-20190509182634-storageactivitiesmarch0503-1KNWL68WBRA94 AWS::CloudFormation::Stack Wed May 22 2019 14:05:29 GMT+1000 (Australian Eastern Standard Time) ⠋ Updating resources in the cloud. This may take a few minutes…
UPDATE_COMPLETE DynamoDBTable AWS::DynamoDB::Table Wed May 22 2019 14:05:28 GMT+1000 (Australian Eastern Standard Time) UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS pnamar05first-20190509182634-storageordersmarch0503-1RLVMFGWLTCIX AWS::CloudFormation::Stack Wed May 22 2019 14:05:29 GMT+1000 (Australian Eastern Standard Time) UPDATE_COMPLETE hostingS3AndCloudFront AWS::CloudFormation::Stack Wed May 22 2019 14:05:33 GMT+1000 (Australian Eastern Standard Time) UPDATE_COMPLETE storageordersmarch0503 AWS::CloudFormation::Stack Wed May 22 2019 14:05:33 GMT+1000 (Australian Eastern Standard Time) UPDATE_COMPLETE storageactivitiesmarch0503 AWS::CloudFormation::Stack Wed May 22 2019 14:05:34 GMT+1000 (Australian Eastern Standard Time) UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS pnamar05first-20190509182634-authcognito8146221a-12ZOVT03QH2PD AWS::CloudFormation::Stack Wed May 22 2019 14:05:39 GMT+1000 (Australian Eastern Standard Time) ⠏ Updating resources in the cloud. This may take a few minutes…
UPDATE_COMPLETE authcognito8146221a AWS::CloudFormation::Stack Wed May 22 2019 14:05:46 GMT+1000 (Australian Eastern Standard Time) ⠹ Updating resources in the cloud. This may take a few minutes…
UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS pnamar05first-20190509182634 AWS::CloudFormation::Stack Wed May 22 2019 14:05:47 GMT+1000 (Australian Eastern Standard Time) UPDATE_IN_PROGRESS storageordersmarch0503 AWS::CloudFormation::Stack Wed May 22 2019 14:05:49 GMT+1000 (Australian Eastern Standard Time) UPDATE_IN_PROGRESS hostingS3AndCloudFront AWS::CloudFormation::Stack Wed May 22 2019 14:05:49 GMT+1000 (Australian Eastern Standard Time) UPDATE_IN_PROGRESS authcognito8146221a AWS::CloudFormation::Stack Wed May 22 2019 14:05:49 GMT+1000 (Australian Eastern Standard Time) UPDATE_IN_PROGRESS storageactivitiesmarch0503 AWS::CloudFormation::Stack Wed May 22 2019 14:05:49 GMT+1000 (Australian Eastern Standard Time) DELETE_IN_PROGRESS storageattachmentpnamar0503 AWS::CloudFormation::Stack Wed May 22 2019 14:05:49 GMT+1000 (Australian Eastern Standard Time) UPDATE_ROLLBACK_COMPLETE pnamar05first-20190509182634-authcognito8146221a-12ZOVT03QH2PD AWS::CloudFormation::Stack Wed May 22 2019 14:05:50 GMT+1000 (Australian Eastern Standard Time) ⠏ Updating resources in the cloud. This may take a few minutes…
DELETE_IN_PROGRESS pnamar05first-20190509182634-storageattachmentpnamar0503-1OGSOC223CZ27 AWS::CloudFormation::Stack Wed May 22 2019 14:05:50 GMT+1000 (Australian Eastern Standard Time) User Initiated
DELETE_IN_PROGRESS S3AuthPolicyRW AWS::IAM::Policy Wed May 22 2019 14:05:52 GMT+1000 (Australian Eastern Standard Time)
DELETE_COMPLETE S3AuthPolicyRW AWS::IAM::Policy Wed May 22 2019 14:05:53 GMT+1000 (Australian Eastern Standard Time)
DELETE_SKIPPED S3Bucket AWS::S3::Bucket Wed May 22 2019 14:05:55 GMT+1000 (Australian Eastern Standard Time)
DELETE_COMPLETE pnamar05first-20190509182634-storageattachmentpnamar0503-1OGSOC223CZ27 AWS::CloudFormation::Stack Wed May 22 2019 14:05:56 GMT+1000 (Australian Eastern Standard Time)
⠙ Updating resources in the cloud. This may take a few minutes…
UPDATE_COMPLETE storageordersmarch0503 AWS::CloudFormation::Stack Wed May 22 2019 14:06:00 GMT+1000 (Australian Eastern Standard Time) UPDATE_COMPLETE hostingS3AndCloudFront AWS::CloudFormation::Stack Wed May 22 2019 14:06:00 GMT+1000 (Australian Eastern Standard Time) UPDATE_COMPLETE authcognito8146221a AWS::CloudFormation::Stack Wed May 22 2019 14:06:00 GMT+1000 (Australian Eastern Standard Time) UPDATE_COMPLETE storageactivitiesmarch0503 AWS::CloudFormation::Stack Wed May 22 2019 14:06:00 GMT+1000 (Australian Eastern Standard Time) DELETE_COMPLETE storageattachmentpnamar0503 AWS::CloudFormation::Stack Wed May 22 2019 14:06:01 GMT+1000 (Australian Eastern Standard Time) UPDATE_ROLLBACK_COMPLETE pnamar05first-20190509182634 AWS::CloudFormation::Stack Wed May 22 2019 14:06:01 GMT+1000 (Australian Eastern Standard Time) ⠇ Updating resources in the cloud. This may take a few minutes…Error updating cloudformation stack ✖ An error occurred when pushing the resources to the cloud
Resource is not in the state stackUpdateComplete
Env (please complete the following information):
- OS: MacOS
- Browser [e.g. chrome, safari]: Chrome - Node: v10.15.1 - npm: 6.4.1 - amplify: 0.2.2-multienv.1
Additional context
I went through other issues and ran the following commands and the issue still is still outstanding:
amplify env pull --restore
amplify remove storage
amplify add storage
amplify push
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 25 (12 by maintainers)
Yes. I still have the issue.
What is very frustrating is to restart a new project, recreate everything, rewire everything and expect the push every time to work nervously.