Session Manager terminated sessions events

0

Hi,
I'm trying to run a script every time a Session Manager session is terminated after a user exits the terminal. I have a script that connects to Session Manager using AWS CLI. I was trying to use EventBridge to create a rule based on the TerminateSession API call but apparently the endpoint is never called unless a specific TerminateSession command is triggered either through the console, API or CLI. Or at least I haven't seen it in the CloudTrail events history anyway. Is there any other way to react to terminals being closed?
Thanks.

質問済み 4年前547ビュー
1回答
0

Well, I just realised I had my connection to NordVPN enabled. Once I disabled it, the connection seems to last much longer now. So the question now would be, why is this happening? And is there any way to fix it? I would like to limit connections to Session Manager to a static IP (the one I have from NordVPN) but this situation it's quite limiting as is.

回答済み 4年前

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

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

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

関連するコンテンツ