Skip to content
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

Users can browse sample Lambda events to use as starting points for input into their Lambda handlers #106

Open
mpiroc opened this issue Oct 9, 2018 · 1 comment
Labels
feature-request New feature or enhancement. May require GitHub community feedback. lambda sam

Comments

@mpiroc
Copy link
Contributor

mpiroc commented Oct 9, 2018

Lambda invocations require a JSON "event". You can find sample events for AWS services in the public docs, but this requires the user to leave their IDE and isn't very discoverable.

  • Create a "Sample Lambda Event Manager" view, and add it to the AWS viewCollection
  • event manager tree would have two top level nodes: "Curated Events", and "Custom Events". This issue deals with the former (Users can browse and manage custom sample Lambda events to use as starting points for input into their Lambda handlers #107 deals with the latter)
  • The sample request manifest references sample definitions, and hosted url locations. Each sample should be represented by a node on the tree
  • Clicking on the node would download the sample event and open it in a new editor pane for user to see
    • initial implementation is simple - no caching
    • The manifest might have some structured information that groups/categorizes the events. Bonus marks for adding this structure into the tree

Later on, when we have the ability to Run/Debug Lambda Handlers locally, these events will be referenced as options to pass into the handler.

@awschristou
Copy link
Contributor

Also sam local generate-event contains samples we could access

@awschristou awschristou added status:ready and removed design feature-request New feature or enhancement. May require GitHub community feedback. labels Dec 13, 2018
@awschristou awschristou changed the title Feature: Browse curated sample events. Browse curated sample events Dec 13, 2018
acguglielmo added a commit to acguglielmo/aws-toolkit-vscode that referenced this issue Jan 11, 2019
Add new view, treeDataProvider and placeholder nodes
@awschristou awschristou changed the title Browse curated sample events Users can browse curated sample Lambda events to use as starting points for input into their Lambda handlers Jan 11, 2019
acguglielmo added a commit to acguglielmo/aws-toolkit-vscode that referenced this issue Feb 1, 2019
Add new view, treeDataProvider and placeholder nodes
@awschristou awschristou added the feature-request New feature or enhancement. May require GitHub community feedback. label Feb 20, 2019
@awschristou awschristou removed this from the v1.0 release to marketplace milestone Jul 12, 2019
@justinmk3 justinmk3 changed the title Users can browse curated sample Lambda events to use as starting points for input into their Lambda handlers Users can browse sample Lambda events to use as starting points for input into their Lambda handlers Jun 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or enhancement. May require GitHub community feedback. lambda sam
Projects
None yet
Development

No branches or pull requests

3 participants