Comments (4)
Hi @mikybars your issue is a regression on our part in v4 I believe, so we will get a fix published shortly.
As for what you are seeing @sean-legitscript on v3 there haven't been any changes so not sure what could be causing that. Could you try adding the property provider.logs.frameworkLambda: true
in your serverless.yml
, then you should be able to see the logs in Cloudwatch for the custom resource lambda.
from serverless.
@mikybars We updated v4 with a fix for this, if you want to run serverless update
and try again?
from serverless.
Yep, it seems to be working now. No more hangs. Good job ;)
from serverless.
Thanks @sean-legitscript for reporting this as I was about to do the same thing 😅
In my case I have a PreSignUp
hook set up for an existing (this fact is relevant) Cognito user pool and I was experiencing the same hangs that you describe.
After one week or so of painful debugging (1+ hour feedback loops) I can say that I finally figured it out and had it working. I don't want to bore anyone here with the gritty details but the problem lies within the custom-resources
code provided by the serverless framework when you add the existing: true
property in your config. This code, which is auto-generated as part of the package
phase inside the .serverless
folder, is responsible for provisioning custom resources in AWS. As I had the opportunity to find out this code is wrong:
export default {
handler: handlerWrapper(handler, 'CustomResourceExistingCognitoUserPool')
};
As far as I'm concerned (I'm not a JS guy) ES6 modules are not supported in Node.js environments, which use CommonJS syntax instead:
module.exports = {
handler: handlerWrapper(handler, 'CustomResourceExistingCognitoUserPool')
};
Btw, this would have been way easier to find out should the lambda function responsible for provisioning the custom resource had had a log group set up in CloudWatch in the first place. I guess anyone expected this to ever fail 🤷🏾
I can offer myself to fix this, btw 🙂
from serverless.
Related Issues (20)
- V4: .env variables do not work in serverles.yml HOT 1
- V4: Default deploymentMethod 'direct' or 'changesets' HOT 3
- [v4] Unable to use basic cli functionality like help without aws credentials HOT 3
- Custom resource uses wrong datatype for version HOT 4
- existing:true S3 Bucket Still Tries to get deleted HOT 3
- `logs.restApi: true` fails to deploy HOT 10
- Serverless deploy not working HOT 1
- [Serverless V4] The "exclude" keyword doesn't work for esbuild HOT 4
- MIT License is a misnomer. The actual framework is closed-source and licensed.
- ESBuild plugin support (Serverless 4) HOT 4
- Bug with version 4.1.8 when trying to deploy HOT 3
- API Gateway Rest API V1 Access Logging creation HOT 3
- Does the S3 property under Provider section no longer create buckets anymore?
- Unable to Disable esbuild in Serverless 4.1.11 HOT 5
- Unable to bundle @aws-sdk in v4 HOT 4
- Recoverable error occurred (Socket connection timeout)
- [V4] Dev mode: handler not found in service directory HOT 1
- Unable to Enable "Helpers for Encryption in Transit" for Environment Variables in Python Lambda
- Serverless4 with Typescript Support No Longer Automatically Verifies Typescript Compilation HOT 2
- Cross account security group rule id erroring as invalid HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless.