You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From the log line above, I can see that the session was successfully started. The line root@ip-***-***-***-***:/src# clearly depicts the same. I also confirmed through the Session Manager in AWS Console (https://ap-south-1.console.aws.amazon.com/systems-manager/session-manager/sessions?region=ap-south-1) that the sessions were started successfully. However as soon as the session is created, it panics somehow!
I wish to log into my ECS Fargate containers programmatically! My goal is to reverse-engineer aws-cli and session-manager-plugin so that they work together
Any help would be appreciated. Thanks in advanced!
The text was updated successfully, but these errors were encountered:
The Problem
I'm trying to use
session-manager-plugin
to log into my ECS Fargate containers and I face the following issue:From the log line above, I can see that the session was successfully started. The line
root@ip-***-***-***-***:/src#
clearly depicts the same. I also confirmed through the Session Manager in AWS Console (https://ap-south-1.console.aws.amazon.com/systems-manager/session-manager/sessions?region=ap-south-1) that the sessions were started successfully. However as soon as the session is created, itpanics
somehow!More information
I've setup the session in the following fashion:
The above code is inspired by this:
session-manager-plugin/src/sessionmanagerplugin/session/session.go
Lines 182 to 209 in 7b544e9
AWS CLI
However, when I try to log into the container through
aws-cli
using this command, it works:Digging into the
aws-cli
code, I find that it invokessession-manager-plugin
as asubprocess
rather than implementing it programmatically:https://github.com/aws/aws-cli/blob/5218ac17b8141e1a15afed9e644904a6a1081b7d/awscli/customizations/ecs/executecommand.py#L103-L111
My Goal
I wish to log into my ECS Fargate containers programmatically! My goal is to reverse-engineer
aws-cli
andsession-manager-plugin
so that they work togetherAny help would be appreciated. Thanks in advanced!
The text was updated successfully, but these errors were encountered: