aws / aws/session-manager-plugin

No data come out when try to resume session.

Open
#102 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
320
Forks
97
PR merge metrics
No merged PRs in 30d

Description

Hi team, I am running into issues as following:
```
import json
import subprocess

import boto3

region = "us-east-2"
client = boto3.client("ssm", region)
target = "i-06c24c15d669fb4cc"

# session = client.start_session(Target=target)
# print(session)
session_id = "XXX"
session = client.resume_session(SessionId=session_id)
cmd = [
"session-manager-plugin",
json.dumps(session),
region,
"StartSession",
"default",
json.dumps(dict(Target=target)),
f"https://ssm.{region}.amazonaws.com",
]
subprocess.run(cmd)
```

When I try to use the resume_session output to start Session, the program hang after
```
Starting session with SessionId: session_id XXX
```
With no output.

but if I use the comment out start_session credentials for tokenValue, streamUrl, session-id, it can create a session successfully.

My question is how to restore the session and why create session works but not resume sessions?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.