-
Notifications
You must be signed in to change notification settings - Fork 819
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
AWS Amplify won't deploy because of CustomAuthTriggerResource error in CloudFormation #13402
Comments
I think #9837 is related.
Edit: Yes, the workaround fixes it. Hope Amplify works on this so we don't have to do this hack, ever.
Then adjust the lambda timeout in CF to 300 seconds. |
|
That's a pretty easy workaround. I ponder if Amplify clean up this nonsense with inline custom resource Lambdas in gen2. |
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v18.15.0
Amplify CLI Version
12.7.0
What operating system are you using?
MacOS Sonoma M1
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
Deleted authTriggerFn7FCFA449
Describe the bug
When I created a pre-signup hook for Amplify, the following CloudFormation template was generated and it worked:
After some changes, I think I accidentally deleted
authTriggerFn7FCFA449
and the whole deployment stopped working. CloudFormation started complaining like this:After detecting the drift I managed to recreate the Lambda, with all the roles, tags, code, cfn-response properly set up. Now, there's no drift. Additionally, the previous error dissapears. However, CloudFormation waits for an hour and then is stuck at UPDATE_FAILED on
CustomAuthTriggerResource
with the following problem:All other resources (
authTriggerFn7FCFA449
,authTriggerFnServiceRole08093B67
,authTriggerFnServiceRoleDefaultPolicyEC9285A8
,UserPoolPreSignUpLambdaInvokePermission
) are at CREATE_COMPLETE and UPDATE_COMPLETE.Looking at the
amplify-amplify65170398e4384-authTriggerFn7FCFA449-wBSraCi16QuH
logs, there is no such request. How do I proceed from here?No git pushes, amplify pushes or stack updates fix the situation.
Expected behavior
CloudFormation should be able to call authTriggerFn7FCFA449 and deploy my amplify website.
Reproduction steps
Project Identifier
a22f3ce8372073d5dc469c7b32da3a78
Log output
No response
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: