Publish SNS in multiple EC2 instances

when I try to sign the http endpoint from an EC2 instance to an SNS topic, I get the following message:

"Not allowed to subscribe to internal endpoints"

Is there a workaround for this? What is the best way to implement pub / sub mechanism in AWS?

+5
source share
1 answer

This means that you used a private IP instead of a public IP.

The easiest way to solve this is to log in to the AWS console for EC2 ( https://console.aws.amazon.com/ec2 ). Then click on the instance and you will see that it has both public and private DNS. You want to use the public.

, : curl -s http://169.254.169.254/2009-04-04/meta-data/public-hostname. : http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html

+5

All Articles