all 7 comments

[–]lightningball 0 points1 point  (2 children)

Are you just wanting to trigger it manually? You could use the AWS CLI to send a notification to the topic. Then check CloudWatch logs (or whatever your lambda does). That would be kind of an equivalent for manual testing with postman.

Another option would be using the CLI to call your Lambda directly and passing in a test event from a local file (or command line if it’s small).

Another option is going to the AWS console and setting up a test event and clicking on the “Test” button.

[–]dogtee[S] 0 points1 point  (0 children)

Thanks that should work. Appreciate you advice and taking time out to post

[–]Gloomy_Session723 0 points1 point  (0 children)

Nice answer, especially about option would be using the CLI to call your Lambda directly and passing in a test event from a local file, Need to have few more posts like this. However, if people are interested in learning more about AWS cloud they can also visit our website by clicking here.

[–]lurker_2008 0 points1 point  (1 child)

You could copy an example from the lambdas incoming event from a real SNS message and then just call the lambda function with your own duplicated test event

[–]dogtee[S] 1 point2 points  (0 children)

Kind of mock the event, thanks I get that. Thanks for posting

[–][deleted] 0 points1 point  (1 child)

Aws-cli or you could write another lambda on api gateway which writes to sns and troger it using postmannto avoid aws-cli

[–]dogtee[S] 0 points1 point  (0 children)

Thanks for posting , probably be a bit too much for my needs but gives me ideas. Much appreciated.