-
Notifications
You must be signed in to change notification settings - Fork 1k
Add pattern for VTL message filtering #2819
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
base: main
Are you sure you want to change the base?
Add pattern for VTL message filtering #2819
Conversation
|
|
||
| curl --location --request POST $API_GATEWAY_SQS_RESOURCE_ENDPOINT \ | ||
| --header 'Content-Type: application/json' \ | ||
| -d @test/test-payload.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may want to update the path as the current directory is cdk
e.g. change this to
-d @../test/test-payload.json
or change directory before executing this command
| @@ -0,0 +1,86 @@ | |||
| # Amazon API Gateway to Amazon SQS with message filtering | |||
|
|
|||
| This project contains sample AWS CDK code to create an API Gateway Rest API, an SQS Queue and the correct VTL integration mapping template to filter out parts of the message body. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would appreciate if you could add more explanation of using message filtering using VTL vs other possible alternatives if any, along with example use-case
Added a new pattern that demonstrates how to use the JSON protocol to send a message to SQS through API gateway and use the VTL to transform / filter said message
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.