Replies: 4 comments 3 replies
-
Hi! You may want to look inside the Lift codebase, it uses the CDK internally. |
Beta Was this translation helpful? Give feedback.
-
hi @mnapoli! Yeah, i've checked it. However, there's a little issue. If i do this in my const queueLambda = new lambda.Function(
this,
`queue-worker-${env}`,
{
functionName: `queue-worker-${env}`,
handler: "Bref\LaravelBridge\Queue\QueueHandler", // this is from the bref documentation
runtime: lambda.Runtime.PROVIDED_AL2,
layers: [phpRuntimeLayer],
code: packagePhpCode("../backend"),
....
}
); Getting similar errors to this, meaning the However, if i change the handler to a custom one: handler: "sqshandler.php" There's no such issue in the So the main question at this point is: How to provide the This might the question that easier to answer @mnapoli maybe? :) Thank you in advance, |
Beta Was this translation helpful? Give feedback.
-
Again, thanks for the reply @mnapoli! Yes, that's the case!
are the version I am currently using. And yes, I am also using the And the error is:
|
Beta Was this translation helpful? Give feedback.
-
Maybe you disabled automatic registration of service providers from packages? (https://laravel-news.com/package-auto-discovery) Because it looks like the Bref Laravel bridge isn't registerd? Why would that class be not found 🤔 |
Beta Was this translation helpful? Give feedback.
-
Hi!
I am not using
serverless
, but usingCDK
. I would like to create theSQS
as part of the stack, but i am not sure how to achieve this.Checking the
documentation
of lift it says:On the
bref
documentation, where thelift
plugin is used, it passes the handler, as:In my
CDK
stack I am trying to replicate this lambda:It would also help if I would get help on how to create it manually? That way I would be able to reproduce it in
CDK
too.Beta Was this translation helpful? Give feedback.
All reactions