-
Notifications
You must be signed in to change notification settings - Fork 151
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
Terraform apply fails with error creating Lambda Event Source Mapping #138
Comments
Another error that can pop up:
|
Using |
Yes, the problem is probably caused because we use SQS and S3 als event source for a single Lambda. |
I had a similar issue. I was using pnpm, do I didn't use yarn or npm at all. Is it possible to not rely on yarn or npm ? I saw the code source underneath and it seems like next build function is using yarn or npm under the hood with a weird detection method (scrapping files, looking for a package-lock.json or yarn.lock) |
i can confirm this bug on 1.0.0-canary.5 and the workaround is working fine. |
So what is the workaround for this issue? |
When setting up a new Next.js app with 0.9.0, the first apply may fail with the following error message:
It seems like there is some race condition when the policy for the Lambda is created.
Workaround
You should be able to run
terraform apply
again and the stack creation would progreed without this error.The text was updated successfully, but these errors were encountered: