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:
amplify add storageamplify pushExpected 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):
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
I tried to follow the instructions provided in this article that talks about this issue:
https://www.rockyourcode.com/aws-amplify-resource-is-not-in-the-state-stack-update-complete
It refers to this github issue: https://github.com/aws-amplify/amplify-cli/issues/82.
Anyhow after following those steps in the article amplify push is still failing.
Hence I upgraded the CLI to this version: 1.6.10
Now amplify push throws a lot more verbose information:
192-168-1-102:pna-multi-env_copy ahmni01$ amplify push
Current Environment: devfirst
| Category | Resource name | Operation | Provider plugin |
| -------- | ---------------------------- | --------- | ----------------- |
| Auth | cognito8146221a | Update | awscloudformation |
| Hosting | S3AndCloudFront | 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 pnamar05first-20190509182634 AWS::CloudFormation::Stack Wed May 22 2019 16:27:43 GMT+1000 (Australian Eastern Standard Time) User Initiated
UPDATE_IN_PROGRESS storageactivitiesmarch0503 AWS::CloudFormation::Stack Wed May 22 2019 16:27:50 GMT+1000 (Australian Eastern Standard Time)
⠼ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS pnamar05first-20190509182634-storageactivitiesmarch0503-1KNWL68WBRA94 AWS::CloudFormation::Stack Wed May 22 2019 16:27:50 GMT+1000 (Australian Eastern Standard Time) User Initiated
⠙ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS storageordersmarch0503 AWS::CloudFormation::Stack Wed May 22 2019 16:27:50 GMT+1000 (Australian Eastern Standard Time)
UPDATE_IN_PROGRESS hostingS3AndCloudFront AWS::CloudFormation::Stack Wed May 22 2019 16:27:50 GMT+1000 (Australian Eastern Standard Time)
UPDATE_IN_PROGRESS authcognito8146221a AWS::CloudFormation::Stack Wed May 22 2019 16:27:51 GMT+1000 (Australian Eastern Standard Time)
⠧ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS pnamar05first-20190509182634-hostingS3AndCloudFront-UCO7ZL6OJIZS AWS::CloudFormation::Stack Wed May 22 2019 16:27:51 GMT+1000 (Australian Eastern Standard Time) User Initiated
UPDATE_IN_PROGRESS DynamoDBTable AWS::DynamoDB::Table Wed May 22 2019 16:28:00 GMT+1000 (Australian Eastern Standard Time) Requested update requires the creation of a new physical resource; hence creating one.
⠇ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS pnamar05first-20190509182634-storageordersmarch0503-1RLVMFGWLTCIX AWS::CloudFormation::Stack Wed May 22 2019 16:27:51 GMT+1000 (Australian Eastern Standard Time) User Initiated
⠙ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS pnamar05first-20190509182634-authcognito8146221a-12ZOVT03QH2PD AWS::CloudFormation::Stack Wed May 22 2019 16:27:51 GMT+1000 (Australian Eastern Standard Time) User Initiated
⠴ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS S3Bucket AWS::S3::Bucket Wed May 22 2019 16:28:00 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 16:28:00 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 16:28:01 GMT+1000 (Australian Eastern Standard Time) The following resource(s) failed to update: [S3Bucket].
⠋ Updating resources in the cloud. This may take a few minutes...
UPDATE_FAILED hostingS3AndCloudFront AWS::CloudFormation::Stack Wed May 22 2019 16:28:02 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].
UPDATE_FAILED storageordersmarch0503 AWS::CloudFormation::Stack Wed May 22 2019 16:28:02 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].
⠼ Updating resources in the cloud. This may take a few minutes...
UPDATE_ROLLBACK_IN_PROGRESS pnamar05first-20190509182634-authcognito8146221a-12ZOVT03QH2PD AWS::CloudFormation::Stack Wed May 22 2019 16:28:03 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 16:28:00 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 16:28:01 GMT+1000 (Australian Eastern Standard Time) ordersmarch0503-devfirst already exists in stack arn:aws:cloudformation:eu-west-1:478576439851:stack/pnamar05first-20190511104149-storageordersmarch0503-1UW0ZZN4JM8XX/9df1eb40-7386-11e9-97c6-0a1f01fad44c
UPDATE_ROLLBACK_IN_PROGRESS pnamar05first-20190509182634-storageordersmarch0503-1RLVMFGWLTCIX AWS::CloudFormation::Stack Wed May 22 2019 16:28:01 GMT+1000 (Australian Eastern Standard Time) The following resource(s) failed to update: [DynamoDBTable].
⠙ Updating resources in the cloud. This may take a few minutes...
UPDATE_FAILED storageactivitiesmarch0503 AWS::CloudFormation::Stack Wed May 22 2019 16:28:03 GMT+1000 (Australian Eastern Standard Time) Resource update cancelled
⠙ Updating resources in the cloud. This may take a few minutes...
UPDATE_FAILED DynamoDBTable AWS::DynamoDB::Table Wed May 22 2019 16:28:00 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 16:28:01 GMT+1000 (Australian Eastern Standard Time) The following resource(s) failed to update: [DynamoDBTable].
⠇ Updating resources in the cloud. This may take a few minutes...
UPDATE_FAILED authcognito8146221a AWS::CloudFormation::Stack Wed May 22 2019 16:28:13 GMT+1000 (Australian Eastern Standard Time) Resource update cancelled
UPDATE_ROLLBACK_IN_PROGRESS pnamar05first-20190509182634 AWS::CloudFormation::Stack Wed May 22 2019 16:28:14 GMT+1000 (Australian Eastern Standard Time) The following resource(s) failed to update: [authcognito8146221a, hostingS3AndCloudFront, storageordersmarch0503, storageactivitiesmarch0503].
⠹ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS authcognito8146221a AWS::CloudFormation::Stack Wed May 22 2019 16:28:19 GMT+1000 (Australian Eastern Standard Time)
UPDATE_IN_PROGRESS storageordersmarch0503 AWS::CloudFormation::Stack Wed May 22 2019 16:28:19 GMT+1000 (Australian Eastern Standard Time)
UPDATE_IN_PROGRESS hostingS3AndCloudFront AWS::CloudFormation::Stack Wed May 22 2019 16:28:19 GMT+1000 (Australian Eastern Standard Time)
UPDATE_IN_PROGRESS storageactivitiesmarch0503 AWS::CloudFormation::Stack Wed May 22 2019 16:28:19 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 16:28:49 GMT+1000 (Australian Eastern Standard Time)
UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS pnamar05first-20190509182634-storageactivitiesmarch0503-1KNWL68WBRA94 AWS::CloudFormation::Stack Wed May 22 2019 16:28:50 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 16:28:49 GMT+1000 (Australian Eastern Standard Time)
UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS pnamar05first-20190509182634-storageordersmarch0503-1RLVMFGWLTCIX AWS::CloudFormation::Stack Wed May 22 2019 16:28:50 GMT+1000 (Australian Eastern Standard Time)
⠋ Updating resources in the cloud. This may take a few minutes...
UPDATE_COMPLETE S3Bucket AWS::S3::Bucket Wed May 22 2019 16:28:49 GMT+1000 (Australian Eastern Standard Time)
UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS pnamar05first-20190509182634-hostingS3AndCloudFront-UCO7ZL6OJIZS AWS::CloudFormation::Stack Wed May 22 2019 16:28:51 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 16:28:54 GMT+1000 (Australian Eastern Standard Time)
UPDATE_COMPLETE hostingS3AndCloudFront AWS::CloudFormation::Stack Wed May 22 2019 16:28:54 GMT+1000 (Australian Eastern Standard Time)
UPDATE_COMPLETE storageactivitiesmarch0503 AWS::CloudFormation::Stack Wed May 22 2019 16:28:55 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-authcognito8146221a-12ZOVT03QH2PD AWS::CloudFormation::Stack Wed May 22 2019 16:28:59 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 16:29:07 GMT+1000 (Australian Eastern Standard Time)
UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS pnamar05first-20190509182634 AWS::CloudFormation::Stack Wed May 22 2019 16:29:08 GMT+1000 (Australian Eastern Standard Time)
⠋ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS storageordersmarch0503 AWS::CloudFormation::Stack Wed May 22 2019 16:29:10 GMT+1000 (Australian Eastern Standard Time)
UPDATE_IN_PROGRESS hostingS3AndCloudFront AWS::CloudFormation::Stack Wed May 22 2019 16:29:10 GMT+1000 (Australian Eastern Standard Time)
UPDATE_IN_PROGRESS storageactivitiesmarch0503 AWS::CloudFormation::Stack Wed May 22 2019 16:29:10 GMT+1000 (Australian Eastern Standard Time)
UPDATE_IN_PROGRESS authcognito8146221a AWS::CloudFormation::Stack Wed May 22 2019 16:29:10 GMT+1000 (Australian Eastern Standard Time)
⠴ Updating resources in the cloud. This may take a few minutes...
UPDATE_ROLLBACK_COMPLETE pnamar05first-20190509182634-authcognito8146221a-12ZOVT03QH2PD AWS::CloudFormation::Stack Wed May 22 2019 16:29:12 GMT+1000 (Australian Eastern Standard Time)
⠦ Updating resources in the cloud. This may take a few minutes...
DELETE_COMPLETE S3Bucket AWS::S3::Bucket Wed May 22 2019 16:29:13 GMT+1000 (Australian Eastern Standard Time)
UPDATE_ROLLBACK_COMPLETE pnamar05first-20190509182634-hostingS3AndCloudFront-UCO7ZL6OJIZS AWS::CloudFormation::Stack Wed May 22 2019 16:29:13 GMT+1000 (Australian Eastern Standard Time)
⠋ Updating resources in the cloud. This may take a few minutes...
DELETE_COMPLETE DynamoDBTable AWS::DynamoDB::Table Wed May 22 2019 16:29:13 GMT+1000 (Australian Eastern Standard Time)
UPDATE_ROLLBACK_COMPLETE pnamar05first-20190509182634-storageordersmarch0503-1RLVMFGWLTCIX AWS::CloudFormation::Stack Wed May 22 2019 16:29:13 GMT+1000 (Australian Eastern Standard Time)
⠸ Updating resources in the cloud. This may take a few minutes...
UPDATE_COMPLETE storageactivitiesmarch0503 AWS::CloudFormation::Stack Wed May 22 2019 16:29:21 GMT+1000 (Australian Eastern Standard Time)
UPDATE_COMPLETE hostingS3AndCloudFront AWS::CloudFormation::Stack Wed May 22 2019 16:29:21 GMT+1000 (Australian Eastern Standard Time)
UPDATE_COMPLETE authcognito8146221a AWS::CloudFormation::Stack Wed May 22 2019 16:29:21 GMT+1000 (Australian Eastern Standard Time)
UPDATE_COMPLETE storageordersmarch0503 AWS::CloudFormation::Stack Wed May 22 2019 16:29:21 GMT+1000 (Australian Eastern Standard Time)
UPDATE_ROLLBACK_COMPLETE pnamar05first-20190509182634 AWS::CloudFormation::Stack Wed May 22 2019 16:29:22 GMT+1000 (Australian Eastern Standard 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
Resource Name: pnamarch05-06-livezero (AWS::S3::Bucket)
Event Type: update
Reason: pnamarch05-06-devfirst already exists in stack arn:aws:cloudformation:eu-west-1:478576439851:stack/pnamar05first-20190511104149-hostingS3AndCloudFront-1JGA1AFF5RCIA/9de8ea90-7386-11e9-9701-02f49d781af6
URL: https://console.aws.amazon.com/cloudformation/home?region=eu-west-1#/stacks/arn%3Aaws%3Acloudformation%3Aeu-west-1%3A478576439851%3Astack%2Fpnamar05first-20190509182634-hostingS3AndCloudFront-UCO7ZL6OJIZS%2F8970c3e0-7236-11e9-8998-02f48c625dae/events
Resource Name: ordersmarch0503-livezero (AWS::DynamoDB::Table)
Event Type: update
Reason: ordersmarch0503-devfirst already exists in stack arn:aws:cloudformation:eu-west-1:478576439851:stack/pnamar05first-20190511104149-storageordersmarch0503-1UW0ZZN4JM8XX/9df1eb40-7386-11e9-97c6-0a1f01fad44c
URL: https://console.aws.amazon.com/cloudformation/home?region=eu-west-1#/stacks/arn%3Aaws%3Acloudformation%3Aeu-west-1%3A478576439851%3Astack%2Fpnamar05first-20190509182634-storageordersmarch0503-1RLVMFGWLTCIX%2F89c7bd80-7236-11e9-ac7e-0a99a68566c4/events
Resource Name: activitiesmarch0503-livezero (AWS::DynamoDB::Table)
Event Type: update
Reason: activitiesmarch0503-devfirst already exists in stack arn:aws:cloudformation:eu-west-1:478576439851:stack/pnamar05first-20190511104149-storageactivitiesmarch0503-3BJQ34B737FB/9ddfe9e0-7386-11e9-b49e-0aac5439e4be
URL: https://console.aws.amazon.com/cloudformation/home?region=eu-west-1#/stacks/arn%3Aaws%3Acloudformation%3Aeu-west-1%3A478576439851%3Astack%2Fpnamar05first-20190509182634-storageactivitiesmarch0503-1KNWL68WBRA94%2F89920780-7236-11e9-b69b-024e38e0666a/events
✖ An error occurred when pushing the resources to the cloud
Resource is not in the state stackUpdateComplete
@stayingcool S3 bucket name have to be globally unique (not just in your account) and from the CloudFormation error it looks like the bucket name you chose has already been taken. Could you try using a different bucket name which is not taken?
Hello @yuth, I'm having the same issue, and i din't specify a S3 name... what could it be other then what you have mentioned??
Please advise
@ravnarayan Could you share the output you get from cloudformation
Hey @yuth, thank you for the quick reply, Please see below as per your request:
⠼ Updating resources in the cloud. This may take a few minutes...
CREATE_COMPLETE authcognito08c501nb AWS::CloudFormation::Stack Wed May 22 2019 13:39:01 GMT+0000 (Coordinated Universal 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
@ravnarayan could you include the full cloudformation log. From the above output I cant see what failed.
Also whats version of Amplify CLI you have running on your machine?
Hey @yuth
amplify -v = 1.6.10
sorry i'm not very good at this... What Command would i run to acquire cloudformation log?
thank you
@ravnarayan when you run amplify push it prints it to the screen. Could you include everything after the push command
@ravnarayan the logs don't show anything as failing. Could you goto the cloudformation console and see if there is anything that failed earlier. You can find your stack name by looking at <project-root>/amplify/backend/amplify-meta.json under provider -> awscloudformation -> StackName
Hey @yuth
Okay so i looked into amplify-meta.json and all it shows is lastPushTimeStamp, and under stack name it illustrates "mobileappreactnative"
@ravnarayan I won't have access to the Cloud Formation resource created in your project. Could you goto the cloudformation console and choose the region where you have your project provisioned. After this you should be able to see the search for the stack name mobileappreactnative and see the events.
Could you share any failed events from there so we know whats going on with your project
Hey @yuth
THank you for the instructions i followed, and this is what i got.
was not successfully created:
18:07:17 UTC-0600 | CREATE_FAILED | AWS::CloudFormation::Stack | analyticsmobileappreactnative
-- | -- | -- | --
The following resource(s) failed to create: [PinpointFunctionOutputs].
This is the only one i see
I looks like one of the nested stack has issue. Could you search for mobileappreactnative-20190425055621-analyticsmobileappreactnativ in the Cloudformation and see if there are any events that have failed there
could you open the file <project-root>/amplify/backend/analytics/<resource-name>/pinpoint-cloudformation-template.json and see whats the version of node in Runtime? If its nodejs6.10 follow the migration docs from our doc site and update your resource and see if that fixes the issue
hey @yuth
Actually, mobileappreactnative-20190425055621-analyticsmobileappreactnativ is associated with:
The following resource(s) failed to create: [PinpointFunctionOutputs]. | | (as per my last Correspondence), this is the only one i can see. Also i had to change nodejs6.10 - nodejs8.10 in order to get rid of the error i was facing before, so yeah this is up to date
Thank you,
@ravnarayan could you share the <project-root>/amplify/backend/analytics/<resource-name>/pinpoint-cloudformation-template.json file. Its not really clear whats happening from the Cloudformation log
Hey @yuth
What i am doing now is trying to run "Amplify Push" after running "amplify remove auth"... I think cognito may have been a issue... Once its complete i will advise if there are any errors... After that maybe i can go back in and add "amplify add auth" to bring cognito back in.
Do you think this will work?
Also my "pinpoint-cloudformation-template.json" 537 lines, is there a specific that you are looking for?
thank you yuth.
Hey @yuth
Same thing another error, I think i should restart amplify, I think i should do this by deleting the current process.... Would you have any idea on how i can delete it?
Thank you,
Hey @yuth
deleted amplify, and started new project, and it WORKED! Thank you for all your help.
@stayingcool Are you still seeing push failures?
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.
@stayingcool You might want to manually delete this S3 bucket from the AWS console - pnamarch05-06-devfirst and try pushing again.
@stayingcool Are you still stuck after deleting the S3 bucket?