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

[BUG] CDK deployment fails due to missing modules #654

Closed
VincentV89 opened this issue Nov 15, 2023 · 2 comments
Closed

[BUG] CDK deployment fails due to missing modules #654

VincentV89 opened this issue Nov 15, 2023 · 2 comments
Labels
bug Something isn't working needs-triage

Comments

@VincentV89
Copy link

Describe the bug

Hi,

When I followed the guide to deploy via "pdk deploy:dev". Halfway through the cloud formation deployment, it errors out.

❌ Deployment failed: Error: The stack named infra-dev failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Received response status [FAILED] from custom resource. Message returned: Error: Cannot find module '@aws-sdk/client-wafv2'
Require stack:

  • /var/task/index.js
  • /var/runtime/index.mjs

I have already installed the dependency in the PNPM but the error still seem to persist.
Screenshot 2023-11-16 at 12 13 24 AM

Expected Behavior

Successful deployment of Infra.

Current Behavior

Infra Deployment errors halfway due to missing aws-sdk modules

Reproduction Steps

pdk deploy:dev

Possible Solution

No response

Additional Information/Context

No response

PDK version used

0.22.36

What languages are you seeing this issue on?

Typescript

Environment details (OS name and version, etc.)

AWS Cloud9, Amazon Linux 2

@VincentV89 VincentV89 added bug Something isn't working needs-triage labels Nov 15, 2023
@cogwirrel
Copy link
Member

Hi Vincent, sorry you experienced this issue! It’s been fixed in this PR, so if you upgrade PDK to 0.22.42 the static website deployment should succeed.

A quick way to update pdk in a typescript monorepo is to use the command:

npx npm-check-updates -u —deep @aws/pdk

Then you can reinstall with pdk install.

Please me know if that works!

@VincentV89
Copy link
Author

Hi Jack!

This works, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage
Projects
None yet
Development

No branches or pull requests

2 participants