Schedule event inputs are ignored
See original GitHub issueThis is a Bug Report
Description
For bug reports:
-
What went wrong? I added an
events
section to my functionfunctions: produce: handler: produce.handler description: Blah blah. role: arn:aws:iam::... memorySize: 128 vpc: securityGroupIds: - sg-12345 subnetIds: - subnet-1 - subnet-2 - subnet-3 events: - schedule: rate(1 minute) enabled: true name: update-schedule description: Updates the thing every minute input: bucket: my-bucket directory: some-directory
A “rule” was created in AWS CloudWatch. But the inputs I defined were not in the rule.
-
What did you expect should have happened? I expected the inputs to be in the “Constant (JSON text)” part of the CloudWatch rule
-
What was the config you used? See above
-
What stacktrace or error message from your provider did you see? I didn’t see any error, apart from the error in my lambda function because of the missing input.
Additional Data
- Serverless Framework Version you’re using: 1.16.1
- Operating System: My laptop runs MacOS, my lambda gets deployed by Codeship. My Codeship build runs on a docker image, based on
lambci/lambda:build-nodejs
- Stack Trace: N/A
- Provider Error messages: N/A
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
setting input type in dynamically created form is ignored
I'm clicking a button to bring up a bootstrap-modal with a dynamically created form inside. My problem is that the input fields are...
Read more >Content filtering in Amazon EventBridge event patterns
Amazon EventBridge supports declarative content filtering using event patterns . ... Equals-ignore-case matching; Complex example with multiple matching ...
Read more >AlpineJS - Laravel Livewire
... Forwarding wire:model input Events; Ignoring DOM-changes (using wire:ignore ) ... 14// Emitting a Livewire event called "some-event" with two parameters.
Read more >Ignore Inputs in Function Definitions - MATLAB & Simulink
If your function accepts a predefined set of inputs, but does not use all the inputs, use the tilde (~) operator to ignore...
Read more >Event Input Misc (GNU Emacs Lisp Reference Manual)
This variable allow setting which special events while-no-input should ignore. It is a list of event symbols (see Event Examples). Function: discard-input ¶....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @pmuens , thanks for looking into this! I still have some comments:
schedule
: an “inline” variant, with only the rate, as well as a “full” variant, with all other options available. I think mentioning this explicitly would also improve the docs.schedule
. It would be better if there was at least a warning about a part of the YAML file being invalid. In my opinion serverless could also just exit with a proper error description on such an error.Agreed that a warning on incorrect indentation would be super useful for this!