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 年前558 查看次数
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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则