-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Streams need to be created before event triggers #2514
Comments
This may be a separate issue, but the same problem also affect the iamRoleStatements. They should also be created before the stream event triggers |
This should've been resolved with the fixes we've pushed to the |
I've also hit this bug with Serverless v1.15.3
|
Thanks for commenting @justinm 👍 Could you please share your |
Thanks @pmuens for getting back to me. I apologize for a delay in my response, but I have created a simple github repo that is reproducing the issue. Please see https://github.com/justinm/serverless-2514 |
@pmuens, should I create a new issue regarding this? I created a small sample application that's capable of reproducing this issue. |
Oh shoot. It looks like this slipped through the cracks. Sorry for that @justinm 😬 So it looks like you're trying to deploy a stream which is not enabled / active. Not 100% sure if this is something related to Serverless or if AWS forces you to only deploy enabled streams. Could you try to re-deploy with an enabled stream and see if this works? I've only deployed |
@justinm I ran into the same error when trying to deploy a new event stream source on an already existing lambda. I got around it my making the lambda depend on the stream, that way it deployed the kinesis stream first before updating the lambda. From your repo, you could try the following for each stream and lambda (see
|
This is a (Bug Report)
Description
For bug reports:
When I try to deploy my templates. I get the following error:
This is due to the fact that the streams are not created yet. I understand that serverless does not create streams for me, but I would expect that they get created before the triggers in the same template
I expect serverless to create the streams before the event triggers
For feature proposals:
Similar or dependent issues:
Additional Data
The text was updated successfully, but these errors were encountered: