amplify-cli: Resource is not in the state stackUpdateComplete

Do you want to request a feature or report a bug? Bug

What is the current behavior? After enabling analytics with auth, and pushing, the user is not able to runamplify auth update(and select default configuration) and then push without receiving the error "Resource is not in the state stackUpdateComplete". When the auth stack in cloudformation is inspected, the following error is observed: Parameters: [autoVerifiedAttributes, smsVerificationMessage, userpoolClientReadAttributes, mfaTypes, emailVerificationSubject, useDefault, userpoolClientGenerateSecret, mfaConfiguration, userpoolClientLogPolicy, smsAuthenticationMessage, roleExternalId, mfaLambdaLogPolicy, passwordPolicyMinLength, userPoolName, policyName, userpoolClientName, userpoolClientLambdaPolicy, mfaLambdaIAMPolicy, mfaPassRolePolicy, emailVerificationMessage, userpoolClientRefreshTokenValidity, userpoolClientSetAttributes, requiredAttributes, roleName, passwordPolicyCharacters, userpoolClientLambdaRole, defaultPasswordPolicy, mfaLambdaRole] must have values. (These are userpool attributes, which should all be added since the default auth configuration is adding a userpool to the identity pool that was created when analytics was enabled.)

However, the user’s auth resources’s parameters.json file appears to contain all of these parameters, and their cloudformation template appears to be formed correctly.

UPDATE: This issue also occurs when running amplify api add, but with the api stacking being affected instead of the auth stack: Parameters: [MutationCreateNoteResponse, QueryListNotesResponse, QueryGetNoteRequest, MutationDeleteNoteRequest, QueryGetNoteResponse, QueryListNotesRequest, MutationCreateNoteRequest, schemaGraphql, MutationDeleteNoteResponse, MutationUpdateNoteRequest, MutationUpdateNoteResponse] must have values

Steps to reproduce the issue: This issue occurs intermittently, and the repro steps listed here are provisional. The precise circumstances causing this error are not yet know.

  1. amplify init (iOS project)
  2. amplify analytics add (w/ auth)
  3. amplify push (successful)
  4. amplify auth update (select default configuration)
  5. amplify auth push

What is the expected behavior? Auth stack should update appropriately.

Additional environment details

  • OS version (ie Windows 10 build X, macOS Sierra 10.12.6, etc.) macOS

  • Output of amplify --version: 0.1.15

  • Did this work in previous versions?: Uncertain, since the issue is intermittent

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 26
  • Comments: 79 (12 by maintainers)

Most upvoted comments

This issue should be resolved with the CLI version - 0.1.16.

I’m also getting this error when running amplify push after a schema update. I’m using amplify-cli version 0.1.19.

@michaelcaterisano How many [pairs of] @connection fields were you tweaking in the single update? I believe the issue only occurs when making changes that result in more than 1 GSI create/update/delete on a single table. In the short term, you can get around this issue by breaking up the push into multiple steps where you only change 1 connection at a time. In the long term, I think we can get around these issues with tooling that warns you or, even better, that automatically breaks up the push into multiple steps. I will also take an action item to document this in the amplify docs.

E.G. The CLI works when going from:

type Meeting @model {
  id: ID!
  name: String!
  room: Room @connection(name: "RoomMeetings")
}

type Room @model {
  id: ID!
  number: Int!
  meetings: [Meeting] @connection(name: "RoomMeetings")
}

to:

type Meeting @model {
  id: ID!
  name: String!
}

type Room @model {
  id: ID!
  number: Int!
}

It also works when going from:

type Meeting @model {
  id: ID!
  name: String!
  room: Room @connection
}

to:

type Meeting @model {
  id: ID!
  name: String!
}

I noticed that it does fail when trying to add multiple connections to a model type in a single push and the reason is that DynamoDB has a limit on the number of GSIs on a single table that you can touch in a single CloudFormation update stack invocation.

E.G. When trying to go from:

type Meeting @model {
  id: ID!
  name: String!
}

type Room @model {
  id: ID!
  number: Int!
}

to:

type Meeting @model {
  id: ID!
  name: String!

  # Both of these connections will try to create GSIs on the Meeting table.
  room: Room @connection(name: "RoomMeetings")
  backupRoom: Room @connection(name: "BackupMeetings")
}

type Room @model {
  id: ID!
  number: Int!

  # Uses the same two GSIs on the Meeting table.
  meetings: [Meeting] @connection(name: "RoomMeetings")
  backupMeetings: [Meeting] @connection(name: "BackupMeetings")
}

will fail with the error

Cannot perform more than one GSI creation or deletion in a single update

We are working on bypassing a number of CloudFormation & other service related limits but for now, you can sidestep this issue by breaking your update into multiple steps. For example, we can get the above schema to work by first going from:

type Meeting @model {
  id: ID!
  name: String!
}

type Room @model {
  id: ID!
  number: Int!
}

to:

type Meeting @model {
  id: ID!
  name: String!
  room: Room @connection(name: "RoomMeetings")
}

type Room @model {
  id: ID!
  number: Int!
  meetings: [Meeting] @connection(name: "RoomMeetings")
}

and then to:

type Meeting @model {
  id: ID!
  name: String!
  room: Room @connection(name: "RoomMeetings")
  backupRoom: Room @connection(name: "BackupMeetings")
}

type Room @model {
  id: ID!
  number: Int!
  meetings: [Meeting] @connection(name: "RoomMeetings")
  backupMeetings: [Meeting] @connection(name: "BackupMeetings")
}

Possibly caused by use of experimental amplify delete feature in project directory prior to re-running amplify init.

I fixed this by adding a space to my graphql schema file and re-pushing. Still, this is a lingering bug but I hope the above steps will help someone.

FYI the only way I could get rid of this message was to delete aws-amplify from my project then delete the global npm package @aws-amplify/cli. I then reinstalled @aws-amplify/cli, ran amplify configure, then amplify init in my project. Once I added auth I was able to push it again.

Would be great if everyone could provide a screenshot of the logs or just paste the logs out here for us to narrow down the issue - along with the OS used.

Is there a best practice that’s been settled on yet for this error?

😅

Same error with 4.13.2.

Amplify CLI version: 4.13.2 Node version: 13.6.0

Why was this issue closed @kaustavghosh06?

For reference, I was following this tutorial https://www.udemy.com/course/serverless-react-with-aws-amplify/ and I encountered the issue while creating an API via the CLI. Removing and adding auth didn’t work for me, but deleting and reinitialising Amplify worked:

npm i -g @aws-amplify/cli

I then deleted amplify by:

amplify delete

I then initialized amplify, added auth, and pushed:

amplify init amplify add auth amplify push

This doesn’t seem to be sustainable workaround as others have mentioned.

Perhaps my Node version is too new? As the awscloudformation/nested-cloudformation-stack.yml file lists "Runtime": "nodejs10.x". I will downgrade now to 10.19.0 and see if the error occurs again.

This was my error log:

✔ Successfully pulled backend environment test from the cloud.

Current Environment: test

| Category | Resource name       | Operation | Provider plugin   |
| -------- | ------------------- | --------- | ----------------- |
| Auth     | tutamplify7ad706f5  | Create    | awscloudformation |
| Api      | tutamplifynotetaker | Create    | awscloudformation |
? Are you sure you want to continue? Yes

The following types do not have '@auth' enabled. Consider using @auth with @model
         - Note
Learn more about @auth here: https://aws-amplify.github.io/docs/cli-toolchain/graphql#auth 


GraphQL schema compiled successfully.

Edit your schema at /Users/sprazzeus/Code/tut-amplify/amplify/backend/api/tutamplifynotetaker/schema.graphql or place .graphql files in a directory at /Users/sprazzeus/Code/tut-amplify/amplify/backend/api/tutamplifynotetaker/schema
? Do you want to generate code for your newly created GraphQ
L API Yes
? Choose the code generation language target javascript
? Enter the file name pattern of graphql queries, mutations 
and subscriptions src/graphql/**/*.js
? Do you want to generate/update all possible GraphQL operat
ions - queries, mutations and subscriptions Yes
? Enter maximum statement depth [increase from default if yo
ur schema is deeply nested] 2
⠼ Updating resources in the cloud. This may take a few minutes...

CREATE_IN_PROGRESS authtutamplify7ad706f5          AWS::CloudFormation::Stack Mon Feb 10 2020 15:09:43 GMT+0000 (Greenwich Mean Time) Resource creation Initiated
CREATE_IN_PROGRESS UpdateRolesWithIDPFunctionRole  AWS::IAM::Role             Mon Feb 10 2020 15:09:42 GMT+0000 (Greenwich Mean Time) Resource creation Initiated
CREATE_IN_PROGRESS apitutamplifynotetaker          AWS::CloudFormation::Stack Mon Feb 10 2020 15:09:42 GMT+0000 (Greenwich Mean Time) Resource creation Initiated
CREATE_IN_PROGRESS UpdateRolesWithIDPFunctionRole  AWS::IAM::Role             Mon Feb 10 2020 15:09:42 GMT+0000 (Greenwich Mean Time)                            
CREATE_IN_PROGRESS authtutamplify7ad706f5          AWS::CloudFormation::Stack Mon Feb 10 2020 15:09:42 GMT+0000 (Greenwich Mean Time)                            
CREATE_IN_PROGRESS apitutamplifynotetaker          AWS::CloudFormation::Stack Mon Feb 10 2020 15:09:41 GMT+0000 (Greenwich Mean Time)                            
UPDATE_IN_PROGRESS amplify-tut-amplify-test-163734 AWS::CloudFormation::Stack Mon Feb 10 2020 15:09:38 GMT+0000 (Greenwi⠴ Updating resources in the cloud. This may take a few minut
es...

CREATE_IN_PROGRESS amplify-tut-amplify-test-163734-authtutamplify7ad706f5-1QJH9CZRJ6Y31 AWS::CloudFormation::Stack Mon Feb 10 2020 15:09:42 GMT+0000 (Greenwich Mean Time) User Init⠧ Updating resources in the cloud. This may take a few minut
es...

CREATE_IN_PROGRESS amplify-tut-amplify-test-163734-apitutamplifynotetaker-IQSLS5UU60LF AWS::CloudFormation::Stack Mon Feb 10 2020 15:09:42 GMT+0000 (Greenwich Mean Time) User Initi⠼ Updating resources in the cloud. This may take a few minut
es...

CREATE_FAILED      amplify-tut-amplify-test-163734-authtutamplify7ad706f5-1QJH9CZRJ6Y31 AWS::CloudFormation::Stack Mon Feb 10 2020 15:09:48 GMT+0000 (Greenwich Mean Time) The following resource(s) failed to create: [SNSRole].                                                                                                                                                    
CREATE_FAILED      SNSRole                                                              AWS::IAM::Role             Mon Feb 10 2020 15:09:47 GMT+0000 (Greenwich Mean Time) snstest-test already exists in stack arn:aws:cloudformation:eu-west-2:936313097227:stack/amplify-retrospec-react-test-181616-authretrospecreacteb5279ef-110III6F0ON77/2b0a1150-49c0-11ea-83d7-06452e71541c
CREATE_IN_PROGRESS SNSRole                                                              AWS::IAM::Role             Mon Feb 10 2020 15:09:47 GMT+0000 (Greenwich Mean Time)                                                                                                                                                                                              ⠦ Updating resources in the cloud. This may take a few minut
es...

CREATE_IN_PROGRESS GraphQLAPI AWS::AppSync::GraphQLApi Mon F⠏ Updating resources in the cloud. This may take a few minut
es...

CREATE_COMPLETE    GraphQLAPI AWS::AppSync::GraphQLApi Mon Feb 10 2020 15:09:49 GMT+0000 (Greenwich Mean Time)                            
CREATE_IN_PROGRESS GraphQLAPI AWS::AppSync::GraphQLApi Mon Feb 10 2020 15:09:49 GMT+0000 (Greenwich Mean Time) Resource ⠧ Updating resources in the cloud. This may take a few minut
es...

CREATE_IN_PROGRESS GraphQLSchema AWS::AppSync::GraphQLSchema⠴ Updating resources in the cloud. This may take a few minut
es...

CREATE_FAILED apitutamplifynotetaker AWS::CloudFormation::Stack Mon Feb 10 2020 15:09:53 GMT+0000 (Greenwich Mean Time) Resource creation cancelled                                                                                                                                                                                                                                       
CREATE_FAILED authtutamplify7ad706f5 AWS::CloudFormation::Stack Mon Feb 10 2020 15:09:53 GMT+0000 (Greenwich Mean Time) Embedded stack arn:aws:cloudformation:eu-west-2:936313097227:stack/amplify-tut-amplify-test-163734-authtutamplify7ad706f5-1QJH9CZRJ6Y31/5d931320-4c17-11ea-8e35-0aea06869730 was not successfully created: The following resource(s) failed to c⠦ Updating resources in the cloud. This may take a few minut
es...

CREATE_IN_PROGRESS GraphQLSchema AWS::AppSync::GraphQLSchema Mon Feb 10 2020 15:09:53 GMT+0000 (Greenwich Mean Time) Res⠦ Updating resources in the cloud. This may take a few minut
es...

UPDATE_ROLLBACK_IN_PROGRESS amplify-tut-amplify-test-163734 AWS::CloudFormation::Stack Mon Feb 10 2020 15:09:54 GMT+0000 (Greenwich Mean Time) The following resource(s) failed to create: [apitutamplifynotetaker, UpdateRolesWithIDPFunctionRole, authtutamplify7ad706f5]. 
CREATE_FAILED               UpdateRolesWithIDPFunctionRole  AWS::IAM::Role             Mon Feb 10 2020 15:09:53 GMT+0000 (Greenwich Mean Time) Resource creation cancelled                                                                      ⠴ Updating resources in the cloud. This may take a few minut
es...

DELETE_COMPLETE                              UpdateRolesWithIDPFunctionRole  AWS::IAM::Role             Mon Feb 10 2020 15:10:13 GMT+0000 (Greenwich Mean Time) 
DELETE_IN_PROGRESS                           UpdateRolesWithIDPFunctionRole  AWS::IAM::Role             Mon Feb 10 2020 15:10:10 GMT+0000 (Greenwich Mean Time) 
DELETE_IN_PROGRESS                           authtutamplify7ad706f5          AWS::CloudFormation::Stack Mon Feb 10 2020 15:10:10 GMT+0000 (Greenwich Mean Time) 
DELETE_IN_PROGRESS                           apitutamplifynotetaker          AWS::CloudFormation::Stack Mon Feb 10 2020 15:10:10 GMT+0000 (Greenwich Mean Time) 
UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS amplify-tut-amplify-test-163734 AWS::CloudFormation::Stack Mon Feb 10 2020 ⠧ Updating resources in the cloud. This may take a few minut
es...

DELETE_COMPLETE    amplify-tut-amplify-test-163734-authtutamplify7ad706f5-1QJH9CZRJ6Y31 AWS::CloudFormation::Stack Mon Feb 10 2020 15:10:13 GMT+0000 (Greenwich Mean Time)               
DELETE_COMPLETE    SNSRole                                                              AWS::IAM::Role             Mon Feb 10 2020 15:10:13 GMT+0000 (Greenwich Mean Time)               
DELETE_IN_PROGRESS amplify-tut-amplify-test-163734-authtutamplify7ad706f5-1QJH9CZRJ6Y31 AWS::CloudFormation::Stack Mon Feb 10 2020 15:10:11 GMT+0000 (Greenwich Mean Time) User Initiated


CREATE_FAILED      GraphQLSchema                                                       AWS::AppSync::GraphQLSchema Mon Feb 10 2020 15:10:11 GMT+0000 (Greenwich Mean Time) Resource creation cancelled
DELETE_IN_PROGRESS amplify-tut-amplify-test-163734-apitutamplifynotetaker-IQSLS5UU60LF AWS::CloudFormation::Stack  Mon Feb 10 2020 15:10:11 GMT+0000 (Greenwich Mean Time) User Init⠇ Updating resources in the cloud. This may take a few minut
es...

DELETE_COMPLETE authtutamplify7ad706f5 AWS::CloudFormation::Stack Mon Feb 10 2020 15:10:21 GMT+0000 (Greenwich Mean Time⠏ Updating resources in the cloud. This may take a few minut
es...

DELETE_COMPLETE    GraphQLAPI    AWS::AppSync::GraphQLApi    Mon Feb 10 2020 15:10:43 GMT+0000 (Greenwich Mean Time) 
DELETE_IN_PROGRESS GraphQLAPI    AWS::AppSync::GraphQLApi    Mon Feb 10 2020 15:10:42 GMT+0000 (Greenwich Mean Time) 
DELETE_COMPLETE    GraphQLSchema AWS::AppSync::GraphQLSchema Mon Feb 10 2020 15:10:41 GMT+0000 (Greenwich Mean Time) 
DELETE_IN_PROGRESS GraphQLSchema AWS::AppSync::GraphQLSchema⠇ Updating resources in the cloud. This may take a few minut
es...

UPDATE_ROLLBACK_COMPLETE amplify-tut-amplify-test-163734 AWS::CloudFormation::Stack Mon Feb 10 2020 15:10:45 GMT+0000 (Greenwich Mean Time) 
DELETE_COMPLETE          apitutamplifynotetaker          AWS::CloudFormation::Stack Mon Feb 10 2020 15:10:45 GMT+0000 (G⠴ Updating resources in the cloud. This may take a few minut
⠦ Updating resources in the cloud. This may take a few minut
es...

Following resources failed

Resource Name: SNSRole (AWS::IAM::Role)
Event Type: create
Reason: snstest-test already exists in stack arn:aws:cloudformation:eu-west-2:936313097227:stack/amplify-retrospec-react-test-181616-authretrospecreacteb5279ef-110III6F0ON77/2b0a1150-49c0-11ea-83d7-06452e71541c


Resource Name: amplify-tut-amplify-163734-authRole-idp (AWS::IAM::Role)
Event Type: create
Reason: Resource creation cancelled


Resource Name: 2osumzmyvfhyrluexsbwh4ybduGraphQLSchema (AWS::AppSync::GraphQLSchema)
Event Type: create
Reason: Resource creation cancelled

✖ An error occurred when pushing the resources to the cloud

Resource is not in the state stackUpdateComplete
An error occured during the push operation: Resource is not in the state stackUpdateComplete```

@mikeparisstuff thx for the update. I made some material changes to my schema (removed several connection references) and adding them back and then making several updates doesn’t seem practical because I’ve made other code changes based on the new schema changes. When I went into my S3 bucket and it seemed stuff has updated (updatedAt time changed). Am I stuck until your fix comes in? Best to just delete and re-start?

Also, I’m still trying to figure out how to keep my local resources in sync with changes made in the console. For example, my schema.graphql is different in local amplify/backend/api/<apiname>/schema.graphql and the version in the AWS console. How do I update the local to keep them in sync so when I push it doesn’t overwrite my changes? When I update the files in amplify/backend/api/<apiname>/build/schema.graphql it gets overridden when I do amplify push.

@mdahlke Can you run amplify update auth -> Yes, use default configurations and then amplify push? That should hopefully resolve your issue.

@rygo6 I was able to reproduce it. So from your amplify/backend/api/myapp/parameters.json file remove all entries except the “AppSyncApiName” key. So your parameters.json should look something like this:

{
    "AppSyncApiName": "myapp"
}

After this do an ampify push. I’m working on a fix for this, but you’ll be able to push your graphql API by following the above-mentioned steps in the meanwhile.

I have faced the same issue and it was caused by changing the project’s route or name. To solve it open amplify/.config/project-config.json and check projectPath

@kaustavghosh06, @tenerifeonline asked me to let you know that due to project pressure he was forced back to firestore for the current project. He will be watching amplify-cli closely going forward and plans to use it in a future project as it looks extremely promising, keep up the good work. Unfortunately, he lost his graphql schema because the “amplify delete” command removed the schema file and he has currently no time to recreate that file. P.S. It would be great if “amplify delete” would not automatically delete the schema and leave the graphql schema file in the amplify directory.

Is there any form of solution for this problem? Removing and adding API (although even this doesn’t seem to work every time) is not a convenient thing to do whenever this error comes up. Sometimes it can even show up when pushing completely fresh default GraphQL schema to the server! We have to live in a constant fear of the whole application breaking after a simple backend update.

FYI the only way I could get rid of this message was to delete aws-amplify from my project then delete the global npm package @aws-amplify/cli. I then reinstalled @aws-amplify/cli, ran amplify configure, then amplify init in my project. Once I added auth I was able to push it again.

If you are new to amplify, beware that - though it enables you to push/publish and might be the only option left - it will kill your stack / backend. Be sure to do this as a last resort or on a a stack that is pretty fresh.

like @dipjyotimetia suggested npm i -g @aws-amplify/cli worked. But after I also did:

amplify remove auth Followed by

amplify add auth Then amplify push didn’t give any errors.

I’ve been having the same issue. It seems in my case that changing the schema definition fixed the problem. This did not work:

type Product @model @auth(rules: [{ allow: owner }]) {
  id: ID!
  name: String!
  price: Float!
  vendor: String
  category: String
  units: String
  defaultqty: Int
  maxqty: Int
}

type Order @model @auth(rules: [{ allow: owner }]) {
  id: ID!
  products: [Product!]!
}

But this did (added name field to the Order type):

type Product @model @auth(rules: [{ allow: owner }]) {
  id: ID!
  name: String!
  price: Float!
  vendor: String
  category: String
  units: String
  defaultqty: Int
  maxqty: Int
}

type Order @model @auth(rules: [{ allow: owner }]) {
  id: ID!
  name: String
  products: [Product!]!
}

Any ideas why?

This happened to me today AGAIN for the n time, the trick that often works for me is to navigate back to the last successful push and then redeploy that version, that’s easy when you are using the continuous deployment of the amplify, if you are not then you might need to git checkout to that particular commit then push that again, that will update the cloud formation stack to STACK_UPDATE_COMPLETE which is the state you want your cloud formation to be in, then you can just redeploy the latest one that you have.

Before I experienced this error, I had a typo error on my schema.graphql which resulted in the build failing (I’m unsure how that got the cloud formation stuck) so I fixed the typo and 🎉 this wild error appeared, so I just navigated back to the last successful deployment, redeployed that, took a coffee break (got a girlfriend, got married, had a baby, when the baby was in college, I) came back to redeploy the fix for the typo.

It’s worth noting that in some cases, like this case for me, the error is actually not what was said, the very bottom of the logs said Resource is not in the state stackUpdateComplete message but when I scrolled up the actual error is CREATE_FAILED, a function that I created failed to be created on the cloud formation side, so it would be useful to scan through the logs and see what actually happened.

It’s look like a merging problem. Save your local schema. Run:

amplify pull

The originial schema will be deleted !

Update the schema from the copy you have created. Then run:

Amplify push

Multiply API configuration can be an issue after doing such of operation. You need to delete the old graph settings on the following file (Android): app/src/main/res/raw/amplifyconfiguration.json

@charleslouis Thanks. Since my project is new, I just recreated the project. If I meet this problem again, I will definitely check it.

I ran amplify function update and updated access to other resources in one function and it passed. You can still run amplify function update again to go back to previous state.

My issue was related to amplify storage, I said yes to the Lambda option but did not have a function for it, so I ran amplify update storage and change the option to not have Lambda, no really useful error was showed, I manage to push after.

I solved the issue by following @iqdev-ca and @dipjyotimetia , but after installing aws-amplify/cli I deleted amplify from my directory and reinitialized. These were the exact steps

I ran the command that @dipjyotimetia suggested:

npm i -g @aws-amplify/cli

I then deleted amplify by:

amplify delete

I then initialized amplify, added auth, and pushed:

amplify init amplify add auth amplify push

This finally solved the issue!!

UPDATE_COMPLETE    storagehdtvstorage       AWS::CloudFormation::Stack Fri Oct 11 2019 15:39:22 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE    functionStripeProductsFn AWS::CloudFormation::Stack Fri Oct 11 2019 15:39:21 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE    analyticshdtvanalytics   AWS::CloudFormation::Stack Fri Oct 11 2019 15:39:21 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS storagehdtvstorage       AWS::CloudFormation::Stack Fri Oct 11 2019 15:39:21 GMT-0500 (Central Daylight Time)
UPDATE_FAILED      authhdtvauth             AWS::CloudFormation::Stack Fri Oct 11 2019 15:39:21 GMT-0500 (Central Daylight Time) Parameters: [resourceNameTruncated, dependsOn] must have values
UPDATE_IN_PROGRESS functionStripeProductsFn AWS::CloudFormation::Stack Fri Oct 11 2019 15:39:21 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS analyticshdtvanalytics   AWS::CloudFormation::Stack Fri Oct 11 2019 15:39:21 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS authhdtvauth             AWS::CloudFormation::Stack Fri Oct 11 2019 15:39:21 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS hdtv-prod-20190706213816 AWS::CloudFormation::Stack Fri Oct 11 2019 15:39:17 GMT-0500 (Central Daylight Time) User Initiated
⠴ Updating resources in the cloud. This may take a few minutes...

UPDATE_ROLLBACK_IN_PROGRESS hdtv-prod-20190706213816 AWS::CloudFormation::Stack Fri Oct 11 2019 15:39:22 GMT-0500 (Central Daylight Time) The following resource(s) failed to update: [authhdtvauth].
⠧ Updating resources in the cloud. This may take a few minutes...

UPDATE_COMPLETE    storagehdtvstorage       AWS::CloudFormation::Stack Fri Oct 11 2019 15:39:31 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE    analyticshdtvanalytics   AWS::CloudFormation::Stack Fri Oct 11 2019 15:39:31 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE    functionStripeProductsFn AWS::CloudFormation::Stack Fri Oct 11 2019 15:39:30 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS storagehdtvstorage       AWS::CloudFormation::Stack Fri Oct 11 2019 15:39:30 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS analyticshdtvanalytics   AWS::CloudFormation::Stack Fri Oct 11 2019 15:39:30 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE    authhdtvauth             AWS::CloudFormation::Stack Fri Oct 11 2019 15:39:30 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS functionStripeProductsFn AWS::CloudFormation::Stack Fri Oct 11 2019 15:39:30 GMT-0500 (Central Daylight Time)
⠼ Updating resources in the cloud. This may take a few minutes...

UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS hdtv-prod-20190706213816 AWS::CloudFormation::Stack Fri Oct 11 2019 15:39:32 GMT-0500 (Central Daylight Time)
⠸ Updating resources in the cloud. This may take a few minutes...

UPDATE_ROLLBACK_COMPLETE hdtv-prod-20190706213816 AWS::CloudFormation::Stack Fri Oct 11 2019 15:39:34 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE          functionStripeProductsFn AWS::CloudFormation::Stack Fri Oct 11 2019 15:39:34 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE          storagehdtvstorage       AWS::CloudFormation::Stack Fri Oct 11 2019 15:39:34 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE          authhdtvauth             AWS::CloudFormation::Stack Fri Oct 11 2019 15:39:34 GMT-0500 (Central Daylight Time)
UPDATE_COMPLETE          analyticshdtvanalytics   AWS::CloudFormation::Stack Fri Oct 11 2019 15:39:34 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS       functionStripeProductsFn AWS::CloudFormation::Stack Fri Oct 11 2019 15:39:33 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS       storagehdtvstorage       AWS::CloudFormation::Stack Fri Oct 11 2019 15:39:33 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS       analyticshdtvanalytics   AWS::CloudFormation::Stack Fri Oct 11 2019 15:39:33 GMT-0500 (Central Daylight Time)
UPDATE_IN_PROGRESS       authhdtvauth             AWS::CloudFormation::Stack Fri Oct 11 2019 15:39:33 GMT-0500 (Central Daylight Time)
⠴ Updating resources in the cloud. This may take a few minutes...Error updating cloudformation stack


Following resources failed

✖ An error occurred when pushing the resources to the cloud

Resource is not in the state stackUpdateComplete
An error occured during the push operation: Resource is not in the state stackUpdateComplete

I have been stuck here for couple of days and could not move on with my project due to this error. Any idea how to solve it?

I’ve to solve the issue like @mikeparisstuff mentioned, but this didn’t worked for me. What solved my Problem was to reset the “Read/write capacity mode” back to “On-demand”, then amplify push worked.

I think I may have realized the issue. Once I add a @connection directive, it seems that it’s not possible to remove it and then amplify push again. This seems to be because adding a @connection adds a GSI, which seems impossible to remove after adding. Is there a workaround for this? So far I’ve just had to amplify delete and start over when making changes to @connection directives.