Skip to content

Need SNS topics for a https webhook

0

We have a cloud watch event generated in JSON format and we are using SNS topic. Through SNS topic we have to publish to the webhook server. so in this scenario is it necessary to have a lambda function.

2 Answers
2

No. One key point here is when the subscribing a https endpoint to sns it needs to verify the subscription.

When a https endpoint is added to sns, sns posts a message to the endpoint with a confirmation url. So long as you can parse that url and either the webhook or via manually launching the url link no lambda function will be required.

Also the https webhook needs to know how to handle sns messages.

EXPERT

answered 2 years ago

1

Hello,

you don't need a Lambda function. Here's how to set up SNS with an HTTPS webhook:

Create SNS Topic: Create a new SNS topic in AWS.

Subscribe HTTPS Endpoint: Subscribe your HTTPS webhook URL to the SNS topic.

Confirm Subscription: SNS sends a confirmation URL to the webhook. Either your webhook should handle this or you can manually confirm it.

Send Messages: Ensure your webhook can handle SNS messages, then publish to the topic.

That's it! No Lambda needed.

EXPERT

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.