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.

demandé il y a 4 ans557 vues
1 réponse
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.

répondu il y a 4 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions