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 年前檢視次數 554 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南