amazon web services - AWS SNS not sending Subscription Confirmation -


i have setup aws sns setup topic 'a'. i'm doing subscribe sns topic using http (tried both manually using aws console online , using java code). 'pending confirmation' in both cases. sns not send initial 'subscriptionconfirmation' provided url.

note endpoint ready receive http post notification. when manually post side see servlet processing json send. reason receive nothing aws sns.

note http end point used subscribe public facing sns should have no issue reaching it.

any inputs appreciated.

here subscribe function.

public string subscribe(string arn,string url) {      if(arn == null || arn.isempty())         arn = topicarn;     subscriberequest subrequest = new subscriberequest(arn,"http",url);     subscriberesult  result = snsclient.subscribe(subrequest);     //get request id subscriberequest sns metadata     if(result != null){         logger.info("subscriberesult - " + result.tostring());     }     logger.info("subscriberequest - " + snsclient.getcachedresponsemetadata(subrequest));     return result.tostring(); } 

you going "pending confirmation" response subscriptionarn. confirmation process asynchronously separate process. make more confusing if call list of current subscriptions show different subscriptionarn of "pendingconfirmation" can not match later.

as far being able connect, try hitting end point outside of aws first. default aws elements locked down , can not connect each other, there security setting somewhere needs changed let sns connect ec2. why can connect ec2 outside of aws, sns service can not.

also check make sure sns , ec2 using in same region. common cause of connection issues.

if using host name connect try using direct ip see if gets through.


Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -