AWS Sns Publish method is not working when application deployed using docker container

0

0

I have wrote java code[Can be found in Screen short] to publish message to aws sns. Below is my issue. 1.When I run the code using command line [cmd: java -jar snsDemo.jar] I am able to publish message to sns Topic 2.But when I hit using the same code via api call which is deployed using docker container. I am not able to publish the message to topic neither I am getting any kind of error.

Issue is same code is working when I run using command line but it is not working when I hit via Api call

Note:Code execution is going till System.out.println(snsClient);[See image attachment] and getting stuck at publish method

image Link: https://i.stack.imgur.com/XJBeb.png

質問済み 2年前100ビュー
回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ