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

Feature request: Enhance generate-event to support chained events in common patterns. #7252

Open
derekmurawsky opened this issue Jul 16, 2024 · 3 comments
Labels
area/local/generate-event sam local generate-event command contributors/welcome Contributors are welcome to work on this type/feature Feature request

Comments

@derekmurawsky
Copy link

Describe your idea/feature/enhancement

I wish the Sam CLI would support generating events of common patterns in AWS. For example, S3 Create Object -> SQS -> Lambda.

Proposal

This feature could leverage the current subcommand capability and look like: sam local generate-event sqs recieve-message-from-s3.

@derekmurawsky derekmurawsky added stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. type/feature Feature request labels Jul 16, 2024
@jysheng123
Copy link
Contributor

Are there any specific events that you are talking about? SAM CLI already has some common events to generate for example like sam local generate-event sqs receive-message, if you think there are any other common events, we welcome contributions, these 2 files need to be edited for any new events samcli/lib/generated_sample_events/event-mapping.json and new-event.json

@jysheng123 jysheng123 removed the stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. label Jul 16, 2024
@derekmurawsky
Copy link
Author

Yes. Sorry if it wasn't clear, but the example I listed was an sqs event that originated from s3. The goal would be to show what the body of the sqs message would look like if it originated from s3. This would make it very useful for showing event patterns as they flow through multiple services. Another example would be an event bridge event that originated from API gateway. I feel that there would be many more common patterns like this.

@jysheng123 jysheng123 added the area/local/generate-event sam local generate-event command label Jul 17, 2024
@jysheng123
Copy link
Contributor

Ok thanks for the suggestion, will keep this marked as a feature request and bring it up with the team in the future. In the meantime we welcome any external contribution.

@jysheng123 jysheng123 added the contributors/welcome Contributors are welcome to work on this label Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/local/generate-event sam local generate-event command contributors/welcome Contributors are welcome to work on this type/feature Feature request
Projects
None yet
Development

No branches or pull requests

2 participants