如何将localhost设置为主题订阅的终端节点-Amazon sns服务

I need to implement amazon sns service in my localhost to test an Go Application but when i tried to set my localhost as Topic subscription's Endpoint it shows Error:

Not authorized to subscribe internal endpoints (Service: AmazonSNS; Status Code: 403; Error Code: AuthorizationError; Request ID: 14bc8224-4b0d-5b9a-a61c-d24122fdf703)

is it Possible?I am new to this

I guess you mean an HTTP/S endpoint? SNS is run by Amazon, so localhost points to their server. You will need to make your endpoint accessible from the internet. Please see Step 1 here: http://docs.aws.amazon.com/sns/latest/dg/SendMessageToHttp.html#SendMessageToHttp.subscribe