question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Schedule event inputs are ignored

See original GitHub issue

This is a Bug Report

Description

For bug reports:

  • What went wrong? I added an events section to my function

    functions:
      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:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
bartkummelcommented, Jul 6, 2017

Hi @pmuens , thanks for looking into this! I still have some comments:

  • The example you linked to is a bit hidden. I was looking for an example with inputs. Although the example you linked to has inputs, the example is in a section on another topic. I think inputs deserve a section of their own, with a dedicated example. That would be a good improvement of the docs.
  • Apparently, there are two different syntaxes of 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.
  • I think it’s wrong that serverless doesn’t complain about the wrong indentation. It just fails silently by skipping the 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.
0reactions
laurenfbcommented, Dec 29, 2017

Agreed that a warning on incorrect indentation would be super useful for this!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found