Posts

Showing posts with the label amazon-sns

AWS SNS HTTP subscription is not calling endpoint

AWS SNS HTTP subscription is not calling endpoint I have deployed AWS SNS using Localstack in my dev machine and now I'm trying to consume messages I'm emitting from awslocal CLI (basically it's a aws against my local Localstack infra) awslocal aws First, I have created a topic: $ awslocal sns create-topic --name my-topic Then, I've created a HTTP subcription against http://localhost:8080/sns/publish : http://localhost:8080/sns/publish $ awslocal sns subscribe --topic-arn "arn:aws:sns:us-east-1:123456789012:my-topic" --protocol http --notification-endpoint http://localhost:8080/sns/publish I have a server running at localhost in port 8080 with a POST /sns/publish endpoint. It is supposed to be called in order to confirm the subscription. But it's never called. localhost 8080 /sns/publish I have some clues. I have deployed Localstack using Docker. After checking the container logs, I have seen this error: 2018-07-02T10:20:03:INFO:werkzeug: 127.0.0.1 - ...