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

Custom resource deployment fails in v6.0.0 #749

Closed
bchunduri opened this issue Jul 22, 2024 · 9 comments
Closed

Custom resource deployment fails in v6.0.0 #749

bchunduri opened this issue Jul 22, 2024 · 9 comments

Comments

@bchunduri
Copy link

Hi Team,

We are deploying the new version of AWS QnABot v6.0.0 using the Cloudformation stacks and it failed to create all the custom resources with error statement as shown in below example:

CloudFormation did not receive a response from your Custom Resource. Please check your logs for requestId [xxxxxxx-xxxxxx-xxxxxx-xxxx]. 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.

There were no cloudwatch events recorded against any of the requestId's from the failed resources and the triggered lambda logs throwing this error:

"errorType": "Runtime.ImportModuleError",
"errorMessage": "Error: Cannot find module 'index'\nRequire stack:\n- /var/runtime/index.mjs",

Please investigate, review and assist us to unblock this problem. Appreciate your swift action.

@bchunduri bchunduri added the bug label Jul 22, 2024
@abhirpat
Copy link
Member

abhirpat commented Jul 22, 2024

Hi @bchunduri, thank you for reporting this issue.

Please try following:

  • Could you please try clicking on stack that has failed > Events > Detect RootCause and see if it points you to the actual error? Also, please try selecting lambda log groups and run cloudwatch query mentioned in the section Use Log Insights to query logs from CloudWatch groups.
  • Is your stack name longer than 26 character ? If so, please try using using latest version which has the fix (see CHANGELOG).

Additionally:

  • Are you using main or VPC template or extended template (deployed using Github repo and npm commands)?
  • Which parameters are you customizing in your Cloudformation stack? Could you please provide steps to reproduce ?

Please let us know if any questions.

Thanks,
Abhishek

@bchunduri
Copy link
Author

Hi @abhirpat, thanks for the quick suggestions and let me review your points:

  1. Unfortunately log insights query could not display any events of the failed resource. And by debugging and backtracking, it is assume to throw errors onto the cfn-proxy log group.
  2. The root stack is exactly 26 characters and other nested stacks go on a higher count and if that is the case, I need to either adapt that little change fixing this bug in v6.0.1
  3. I am using the vpc template and passed all relevant custom parameters to the main and all nested stacks created by the root stack

Thanks,

Babu

@abhirpat
Copy link
Member

abhirpat commented Jul 24, 2024

@bchunduri Thank you. Could you please try using latest template v6.0.2 and update us if you have this issue?

@michaelin-96
Copy link
Member

@bchunduri, I deployed v6.0.0 VPC template with 26 characters in the stack name and wasn't able to replicate the issue. I was able to deploy successfully.

@bchunduri
Copy link
Author

Hi @michaelin-96 , thanks and have you tried stack names with more than 26 characters ?

@bchunduri
Copy link
Author

@abhirpat , wonder to see another minor version released in no time ! This leave us in dilemma to hold over to a stable release :(

@michaelin-96
Copy link
Member

@bchunduri, if you create a stack name with over 26 characters for v6.0.0 then it will fail. See #741. This is addressed v6.0.1 and onwards.

@DeccanAjay
Copy link

@bchunduri - thank you for bringing this to our attention. Please use the latest version to update your stack. We will look into this more and be in touch shortly.

@fhoueto-amz
Copy link
Member

Hi @bchunduri
I am closing this. Please feel free to reopen or open a new issue, if you have more details to help reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants