Questions tagged [aws-session-manager]
38 questions
6
votes
3 answers
Using Session Manager to connect RDS without having EC2 instance
When I go through the documents, using session manager we can connect instance in private subnet without having bastion host itself [direct port forwarding from local to private ec2].
But in RDS case, even though we are making connection using…

vignesh
- 141
- 1
- 9
6
votes
1 answer
aws start-session end with **Cannot perform start session: EOF**
I try to using Session Manager within my CI (with a vanilla configuration, so nothing too fancy).
All inputs (keys, etc.) and configurations (user/strategy/key) are valid. I succeed to start a session on my own laptop.
But on my pipeline i got the…

alxsbn
- 340
- 2
- 14
6
votes
1 answer
Can't get SSH connections through AWS Session Manager working
I have an EC2 instance in a private subnet in which I want to copy files.
Instead of a S3 bucket I want to use Secure File Copy through Session Manager as documented on here and announced on here.
A running EC2 instance is attached with an instance…

Johannes Barop
- 7,323
- 2
- 25
- 33
5
votes
0 answers
Is it possible to use ssm Session Manager to connect to a sagemaker notebook?
SageMaker Notebooks do not have an "Official" way for ssh connections, although it is possible to find instructions for it using ngrok.
Is it possible to use session manager instead? Although the SageMaker Notebook looks like an ec2 the arn does not…

RBA
- 783
- 8
- 20
5
votes
3 answers
AWS SSM session manager not showing instances
I added the policy: AmazonSSMManagedInstanceCore to the instance profile of the windows instance (which is running the SSM agent)... but it doesn't show up under session manager.
It keeps saying: "There are no instances which are associated with the…

deep_blue
- 85
- 1
- 7
5
votes
1 answer
AWS Systems Manager - Session Manager and Run Command "document process failed unexpectedly"
I'm using sessions Manager/Run Command to access some of my instances and it works for some instances and not for others.
I have the same configuration for a few instances, same security groups, IAM role, agents installed with the same agent…

MillerC
- 663
- 1
- 11
- 26
4
votes
1 answer
Cant install AWS Session Manager plugin on Linux ubuntu 16.04
Im trying to install AWS Session Manager plugin on my Linux Ubuntu 16.04 environment.
But keep getting following error when I use the yum command with rpm file :
sudo yum install -y session-manager-plugin.rpm
Setting up Install Process
Examining…

Ragnar921
- 829
- 3
- 17
- 30
4
votes
0 answers
aws ssm session - how do I set "runAsDefaultuser" to be a interactive parameter when starting a session
I'm trying to create a document that I call and specific my IAM user as the user to connect with. This document will be a shared document that has a parameter "runAsDefaultuser". It will default to a user that doesn't exist. This will force me to…

b4ksp1n
- 41
- 1
4
votes
4 answers
Why does AWS CloudWatch encrypted log groups breaks session manager?
Recently attached a key from AWS KMS to encrypt CloudWatch log groups for AWS Systems Manager Session Manager. Now I can't connect to any session.
What is this error and how to fix?
Your session has been terminated for the following reasons: …

ForeverLearningAndCoding
- 499
- 2
- 7
- 16
4
votes
1 answer
How to establish AWs Systems Manager PortForwarding session? Unknown session type Port
I'm trying to do a POC of AWS Systems Manager Session Manager Port Forwarding session but I can't seem to be able to start the PortForwarding session even though starting a normal session works.
A session starts and works as intended
aws ssm…

ThePilot
- 53
- 1
- 7
4
votes
1 answer
Unable to decode AWS Session Manager websocket output in python
Hope you're doing great !
The usecase
I'm trying to PoC something on AWS, the use case is that we need to be able to check on all our infrastructure that all instance are reachable through AWS Session Manager.
In order to do that, I will use a…

Mehben
- 49
- 3
3
votes
1 answer
Fastest way to transfer files to EC2 over Session Manager
I regularly need to move large files to and from an EC2 instance connected via Session Manager. File transfers within AWS are fast as are files between local machines and non AWS assets over our fiber connection.
However, upstream and downstream…

Kyle Banerjee
- 2,554
- 4
- 22
- 30
2
votes
1 answer
How can I make ports forwarded via AWS SSM available to connections not originating from localhost?
I am using AWS CLI in a Docker container to open a port forwarding session to a remote host via AWS SSM on an EC2 instance. So that I can access the port from outside of the Docker container, I am mapping it in Docker so that it is available on my…

Chris
- 6,914
- 5
- 54
- 80
2
votes
0 answers
AWS SSM Start Session does not work in specific wifi network
I'd like to preface by saying this issue only occurs when connected to my home WiFi network as of Wednesday. When I connect to my office network or to a mobile hotspot everything works as expected, in the past it worked on my home WiFi as well.
aws…

kalanga
- 21
- 2
2
votes
0 answers
I want to understand how to use aws start_session output to execute commands
I am using python and AWS boto3 to automate a few manual works. My Scenario is once I open a session with the session manager I will be able to execute commands like connecting to my DB.
Now I used boto3 start_session where I got the response with…

vinstart
- 21
- 3