Skip to content

[feat] Add lambda-invoke CLI for local + remote invocation #648

@manojmahapatra

Description

@manojmahapatra

Describe the feature

Add a small CLI (lambda-invoke) that can invoke a Lambda function locally (via /invoke) or remotely (via AWS CLI). This mirrors Cargo Lambda’s invoke and improves the developer feedback loop.

  • Local testing today requires manual curl to http://127.0.0.1:7000/invoke
  • Remote testing requires aws lambda invoke commands

Inspiration

Cargo Lambda's invoke provides a simple loop. We can match that experience here with a low-risk change.

Use Case

  1. Developers run their function locally and invoke it with a single command instead of using curl requests.
  2. It can be used for remote smoke tests post deployment.
  3. CI can invoke a local and remote function using a simple CLI.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions