Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UserPoolClientInputs stuck in CREATE_IN_PROGRESS #13366

Closed
2 tasks done
alonsnir opened this issue Oct 25, 2023 · 8 comments
Closed
2 tasks done

UserPoolClientInputs stuck in CREATE_IN_PROGRESS #13366

alonsnir opened this issue Oct 25, 2023 · 8 comments
Labels
auth Issues tied to the auth category of the CLI pending-triage Issue is pending triage

Comments

@alonsnir
Copy link

How did you install the Amplify CLI?

npm

If applicable, what version of Node.js are you using?

v16.16.0

Amplify CLI Version

12.7.1

What operating system are you using?

Ubintu

Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

No manual changes made

Describe the bug

Switched to a new region, amplify env add, added a new env.
Now when pushing it hangs forever. Looking at the cloud formation logs:
2023-10-25 10:39:50 UTC+0300 UserPoolClientInputs CREATE_IN_PROGRESS

0:33 $ amplify push
✔ Successfully pulled backend environment siggtest from the cloud.

    Current Environment: siggtest
    
┌──────────┬─────────────────┬───────────┬───────────────────┐
│ Category │ Resource name   │ Operation │ Provider plugin   │
├──────────┼─────────────────┼───────────┼───────────────────┤
│ Api      │ arugga          │ Create    │ awscloudformation │
├──────────┼─────────────────┼───────────┼───────────────────┤
│ Auth     │ aruggaauth      │ Create    │ awscloudformation │
├──────────┼─────────────────┼───────────┼───────────────────┤
│ Auth     │ userPoolGroups  │ Create    │ awscloudformation │
├──────────┼─────────────────┼───────────┼───────────────────┤
│ Custom   │ customResources │ Create    │ awscloudformation │
├──────────┼─────────────────┼───────────┼───────────────────┤
│ Function │ IotToSQS        │ Create    │ awscloudformation │
├──────────┼─────────────────┼───────────┼───────────────────┤
│ Function │ SQSToIoT        │ Create    │ awscloudformation │
├──────────┼─────────────────┼───────────┼───────────────────┤
│ Function │ hobo            │ Create    │ awscloudformation │
├──────────┼─────────────────┼───────────┼───────────────────┤
│ Function │ pullRobotData   │ Create    │ awscloudformation │
├──────────┼─────────────────┼───────────┼───────────────────┤
│ Function │ pushRobotData   │ Create    │ awscloudformation │
├──────────┼─────────────────┼───────────┼───────────────────┤
│ Function │ sunset          │ Create    │ awscloudformation │
├──────────┼─────────────────┼───────────┼───────────────────┤
│ Hosting  │ amplifyhosting  │ Create    │ awscloudformation │
└──────────┴─────────────────┴───────────┴───────────────────┘
✔ Are you sure you want to continue? (Y/n) · yes
GraphQL schema compiled successfully.

Edit your schema at /home/alon/code/front-end/amplify/backend/api/arugga/schema.graphql or place .graphql files in a directory at /home/alon/code/front-end/amplify/backend/api/arugga/schema
Installing dependencies from Pipfile.lock (c9b232)...
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
Installing dependencies from Pipfile.lock (db4242)...
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
Installing dependencies from Pipfile.lock (e02f68)...
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
Installing dependencies from Pipfile.lock (db4242)...
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
? Do you want to update code for your updated GraphQL API Yes
? Do you want to generate GraphQL statements (queries, mutations and subscription) based on your schema types?
This will overwrite your current graphql queries, mutations and subscriptions Yes

Deploying resources into siggtest environment. This will take a few minutes. ⠹
Deploying resources into siggtest environment. This will take a few minutes. ⠼
Deploying resources into siggtest environment. This will take a few minutes. ⠴
Deploying resources into siggtest environment. This will take a few minutes. ⠦
Deploying resources into siggtest environment. This will take a few minutes. ⠇
Deploying resources into siggtest environment. This will take a few minutes. ⠏
Deploying resources into siggtest environment. This will take a few minutes. ⠋
Deploying root stack arugga [ =================----------------------- ] 5/12
Deploying resources into siggtest environment. This will take a few minutes. ⠙
Deploying resources into siggtest environment. This will take a few minutes. ⠹
Deploying resources into siggtest environment. This will take a few minutes. ⠇
Deploying resources into siggtest environment. This will take a few minutes. ⠋
Deploying root stack arugga [ =================----------------------- ] 5/12
Deploying resources into siggtest environment. This will take a few minutes. ⠙
Deploying resources into siggtest environment. This will take a few minutes. ⠹
Deploying resources into siggtest environment. This will take a few minutes. ⠸
Deploying root stack arugga [ =================----------------------- ] 5/12
Deploying resources into siggtest environment. This will take a few minutes. ⠼
Deploying resources into siggtest environment. This will take a few minutes. ⠴
Deploying root stack arugga [ =================----------------------- ] 5/12
Deploying resources into siggtest environment. This will take a few minutes. ⠼
Deploying resources into siggtest environment. This will take a few minutes. ⠴
Deploying resources into siggtest environment. This will take a few minutes. ⠦
Deploying root stack arugga [ =================----------------------- ] 5/12
Deploying resources into siggtest environment. This will take a few minutes. ⠧
Deploying resources into siggtest environment. This will take a few minutes. ⠇
Deploying root stack arugga [ =================----------------------- ] 5/12
Deploying resources into siggtest environment. This will take a few minutes. ⠏
Deploying resources into siggtest environment. This will take a few minutes. ⠹
Deploying resources into siggtest environment. This will take a few minutes. ⠴
Deploying resources into siggtest environment. This will take a few minutes. ⠦
Deploying resources into siggtest environment. This will take a few minutes. ⠧
Deploying root stack arugga [ =================----------------------- ] 5/12
Deploying resources into siggtest environment. This will take a few minutes. ⠇
Deploying resources into siggtest environment. This will take a few minutes. ⠏
Deploying root stack arugga [ =================----------------------- ] 5/12
        amplify-arugga-siggtest-125334 AWS::CloudFormation::Stack     UPDATE_IN_PROGRESS             Wed Oct 25 2023 10:37:55…     
Deploying resources into siggtest environment. This will take a few minutes. ⠧
Deploying resources into siggtest environment. This will take a few minutes. ⠇
Deploying resources into siggtest environment. This will take a few minutes. ⠏
Deploying resources into siggtest environment. This will take a few minutes. ⠋
Deploying resources into siggtest environment. This will take a few minutes. ⠹
Deploying resources into siggtest environment. This will take a few minutes. ⠸
Deploying root stack arugga [ =================----------------------- ] 5/12
        amplify-arugga-siggtest-125334 AWS::CloudFormation::Stack     UPDATE_IN_PROGRESS             Wed Oct 25 2023 10:37:55…     
        hostingamplifyhosting          AWS::CloudFormation::Stack     CREATE_COMPLETE                Wed Oct 25 2023 10:38:10…     
        functionSQSToIoT               AWS::CloudFormation::Stack     CREATE_COMPLETE                Wed Oct 25 2023 10:39:00…     
        functionsunset                 AWS::CloudFormation::Stack     CREATE_COMPLETE                Wed Oct 25 2023 10:39:00…     
        functionIotToSQS               AWS::CloudFormation::Stack     CREATE_COMPLETE                Wed Oct 25 2023 10:39:00…     
Deploying resources into siggtest environment. This will take a few minutes. ⠼
Deploying root stack arugga [ =================----------------------- ] 5/12
        amplify-arugga-siggtest-125334 AWS::CloudFormation::Stack     UPDATE_IN_PROGRESS             Wed Oct 25 2023 10:37:55…     
        hostingamplifyhosting          AWS::CloudFormation::Stack     CREATE_COMPLETE                Wed Oct 25 2023 10:38:10…     
        functionSQSToIoT               AWS::CloudFormation::Stack     CREATE_COMPLETE                Wed Oct 25 2023 10:39:00…     
        functionsunset                 AWS::CloudFormation::Stack     CREATE_COMPLETE                Wed Oct 25 2023 10:39:00…     
        functionIotToSQS               AWS::CloudFormation::Stack     CREATE_COMPLETE                Wed Oct 25 2023 10:39:00…     
Deploying resources into siggtest environment. This will take a few minutes. ⠴
Deploying resources into siggtest environment. This will take a few minutes. ⠙
Deploying root stack arugga [ =================----------------------- ] 5/12
        amplify-arugga-siggtest-125334 AWS::CloudFormation::Stack     UPDATE_IN_PROGRESS             Wed Oct 25 2023 10:37:55…     
        hostingamplifyhosting          AWS::CloudFormation::Stack     CREATE_COMPLETE                Wed Oct 25 2023 10:38:10…     
        functionSQSToIoT               AWS::CloudFormation::Stack     CREATE_COMPLETE                Wed Oct 25 2023 10:39:00…     
        functionsunset                 AWS::CloudFormation::Stack     CREATE_COMPLETE                Wed Oct 25 2023 10:39:00…     
        functionIotToSQS               AWS::CloudFormation::Stack     CREATE_COMPLETE                Wed Oct 25 2023 10:39:00…     
        functionhobo                   AWS::CloudFormation::Stack     CREATE_COMPLETE                Wed Oct 25 2023 10:39:00…     
        autharuggaauth                 AWS::CloudFormation::Stack     CREATE_IN_PROGRESS             Wed Oct 25 2023 10:38:17…     
Deploying api arugga [ ---------------------------------------- ] 0/11
Deploying auth aruggaauth [ =============================----------- ] 8/11
        SNSRole                        AWS::IAM::Role                 CREATE_COMPLETE                Wed Oct 25 2023 10:38:41…     
        UserPool                       AWS::Cognito::UserPool         CREATE_COMPLETE                Wed Oct 25 2023 10:38:44…     
        UserPoolClient                 AWS::Cognito::UserPoolClient   CREATE_COMPLETE                Wed Oct 25 2023 10:38:46…     
        UserPoolClientWeb              AWS::Cognito::UserPoolClient   CREATE_COMPLETE                Wed Oct 25 2023 10:38:46…     
        UserPoolClientRole             AWS::IAM::Role                 CREATE_COMPLETE                Wed Oct 25 2023 10:39:05…     
        UserPoolClientLambda           AWS::Lambda::Function          CREATE_COMPLETE                Wed Oct 25 2023 10:39:14…     
        UserPoolClientLambdaPolicy     AWS::IAM::Policy               CREATE_COMPLETE                Wed Oct 25 2023 10:39:32…     
        UserPoolClientLogPolicy        AWS::IAM::Policy               CREATE_COMPLETE                Wed Oct 25 2023 10:39:50…     
        UserPoolClientInputs           Custom::LambdaCallout          CREATE_IN_PROGRESS             Wed Oct 25 2023 10:39:50…     
Deploying auth userPoolGroups [ ---------------------------------------- ] 0/5
Deploying custom customResources [ ---------------------------------------- ] 0/17
Deployed function IotToSQS [ ======================================== ] 3/3
Deployed function SQSToIoT [ ======================================== ] 3/3
Deployed function hobo [ ======================================== ] 4/4
        AmplifyFunctionSecretsPolicy   AWS::IAM::Policy               CREATE_COMPLETE                Wed Oct 25 2023 10:38:39…     
Deploying function pullRobotData [ ---------------------------------------- ] 0/4
Deploying function pushRobotData [ ---------------------------------------- ] 0/4
Deployed function sunset [ ======================================== ] 3/3
        LambdaExecutionRole            AWS::IAM::Role                 CREATE_COMPLETE                Wed Oct 25 2023 10:38:21…     
        LambdaFunction                 AWS::Lambda::Function          CREATE_COMPLETE                Wed Oct 25 2023 10:38:31…     
        lambdaexecutionpolicy          AWS::IAM::Policy               CREATE_IN_PROGRESS             Wed Oct 25 2023 10:38:31…     
Deployed hosting amplifyhosting [ ======================================== ] 1/1
        AmplifyBranch                  AWS::Amplify::Branch           CREATE_COMPLETE                Wed Oct 25 2023 10:38:04…     
^C✘-INT ~/code/front-end [develop|✚ 17…4] 

Expected behavior

deploy

Reproduction steps

amplify push

Project Identifier

5902e039308c56f5d2b3506690343622

Log output

# Put your logs below this line


Additional information

No response

Before submitting, please confirm:

  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I have removed any sensitive information from my code snippets and submission.
@alonsnir alonsnir added the pending-triage Issue is pending triage label Oct 25, 2023
@ykethan
Copy link
Member

ykethan commented Oct 26, 2023

Hey @alonsnir, as discussed on the Discord thread, could you provide us some additional information on the auth resource configuration with the reproduction steps? This would enable us in diving deeper into the issue.

@ykethan ykethan added auth Issues tied to the auth category of the CLI pending-response Issue is pending response from the issue author labels Oct 26, 2023
@alonsnir
Copy link
Author

alonsnir commented Nov 2, 2023

Hey @ykethan

I'm not sure how to reproduce. The App is running for a while and now after adding a new env in one of the regions the error appear. It hangs in UserPoolClientInputs creating
Logicalid: UserPoolClientInputs Type: Custom::LambdaCallout Status: Creating
if I cancel the process with Ctrl+c I then the status changes to DelteFailed
CloudFormation did not receive a response from your Custom Resource. Please check your logs for requestId [a59b2be3-70fa-480d-8f29-64274ec984a2]. If you are using the Python cfn-response module, you may need to update your Lambda function code so that CloudFormation can attach the updated version.

@github-actions github-actions bot removed the pending-response Issue is pending response from the issue author label Nov 2, 2023
@ykethan
Copy link
Member

ykethan commented Nov 6, 2023

Hey @alonsnir, apologies for the delay in a response. Let me work on reproing this behavior.
Additionally, could you try running amplify update auth -> run through the auth flow and run amplify push --force
I would not recommend exiting the push early as this may cause expected behaviors such as drifts with the application.

@ykethan ykethan added the investigating This issue is being investigated label Nov 6, 2023
@ykethan
Copy link
Member

ykethan commented Nov 8, 2023

update: on diving into the project logs noticed the auth CloudFormation template utilizes yml files indicating the auth resource has not been migrated.
could you run amplify update auth and migrate the auth resource when prompted. believe the un-migrated resource maybe causing the Lambda callout function creation to hang

@ykethan ykethan added pending-response Issue is pending response from the issue author and removed investigating This issue is being investigated labels Nov 8, 2023
@adamsiemion
Copy link

adamsiemion commented Nov 13, 2023

I run into exactly the same issue with the React Amplify JS samples. To make the sample app work I had to update a few libraries: https://github.com/adamsiemion/amplify-js-samples/pull/1

$ node -v
v21.1.0

$ amplify version
12.7.1

@alonsnir
Copy link
Author

@ykethan amplify update auth resolved the issue.
Thank you

@github-actions github-actions bot removed the pending-response Issue is pending response from the issue author label Nov 15, 2023
@ykethan
Copy link
Member

ykethan commented Nov 15, 2023

@alonsnir glad to hear that you were able to mitigate the issue by migrating auth.

@adamsiemion interesting thank you for the information.

Closing the issue, please feel free in reaching out to us again.

@ykethan ykethan closed this as not planned Won't fix, can't repro, duplicate, stale Nov 15, 2023
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Issues tied to the auth category of the CLI pending-triage Issue is pending triage
Projects
None yet
Development

No branches or pull requests

3 participants