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

CloudFormation did not receive a response from your Custom Resource [UserPoolClientInputs]. #13581

Closed
2 tasks done
musukwamoshi opened this issue Feb 7, 2024 · 3 comments
Closed
2 tasks done
Labels
auth Issues tied to the auth category of the CLI pending-triage Issue is pending triage

Comments

@musukwamoshi
Copy link

musukwamoshi commented Feb 7, 2024

How did you install the Amplify CLI?

npm

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

v18.12.0

Amplify CLI Version

v12.10.1

What operating system are you using?

Windows 11

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

Updated the runtime version of [UserPoolClientLambda] in cloudformation-temlate.yml to v18 in the backend/auth folder. [UserPoolClientLambda] resource wouldn't create until the runtime update. But now [UserPoolClientInputs] fails

Describe the bug

Logical ID: [UserPoolClientInputs]
Type: Custom::LambdaCallout

Creating of the above resource fails when cloning an existing env on aws using amplify

Expected behavior

The resources get created successfully

Reproduction steps

1.amplify pull --appId projectiedntifier --envName
2.amplify env add
3.Updated the runtime version of [UserPoolClientLambda] in cloudformation-temlate.yml to v18 in the backend/auth folder
4.amplify push

Note, creation of [UserPoolClientLambda] fails without step 3

Project Identifier

a654c50d1347b00bb26cfc532f1f832a

Log output

# Put your logs below this line


Additional information

CloudFormation did not receive a response from your Custom Resource. 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.

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.
@musukwamoshi musukwamoshi added the pending-triage Issue is pending triage label Feb 7, 2024
@ykethan
Copy link
Member

ykethan commented Feb 7, 2024

Hey @musukwamoshi, Thank you for reaching out. From the information provided noticed the project utilizes a un-migrated auth resource. We can migrate the auth resource by running amplify update auth which should prompt to migrate by selecting yes.
The issue occurs on the Lambda function(UserPoolClientInputs) tied to Node.js 18 runtime which utilizes AWS SDK for javascript v3. Please refer to https://aws.amazon.com/blogs/compute/node-js-18-x-runtime-now-available-in-aws-lambda/ providing additional information on this change.

@ykethan ykethan added auth Issues tied to the auth category of the CLI pending-response Issue is pending response from the issue author labels Feb 7, 2024
@musukwamoshi
Copy link
Author

@ykethan thanks for the feedback. I also noticed using node16 seems to resolve the issue as well. Thanks again

@github-actions github-actions bot removed the pending-response Issue is pending response from the issue author label Feb 8, 2024
Copy link

github-actions bot commented Feb 8, 2024

⚠️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

2 participants