Questions tagged [aws-session-manager]
38 questions
2
votes
0 answers
How to use AWS session manager port forwarding to connect to RDS instance
I am new to AWS Session manager. And my requirement is as follows.
I have a RDS instance I need to connect to. Currently it is not publicly accessible. I am using VPN to connect to it.
Since I heard about AWS session manager with port forwarding…

Jananath Banuka
- 2,951
- 8
- 57
- 105
2
votes
1 answer
How to get current ssm sessionId after starting a new session?
I'm trying to get the current aws ssm sessionId after starting a session. I can see that when I start it it gets printed, like this
Starting session with SessionId: test@test.com-0ftz59d2285d67fb5
But I don't know where this comes from.
I can also…

Bruno_Ferreira
- 1,305
- 21
- 33
2
votes
2 answers
How to use session-manager-plugin command
I want to use session-manager-plugin in python code.
The code is written as follows
import boto3
from boto3.session import Session
import subprocess
AWS_REGION = "ap-northeast-1"
AWS_PROFILE = "default"
INSTANCE_ID = "i-XXXXX"
ssm =…

hiro
- 21
- 1
- 2
2
votes
1 answer
Unable to connect EC2 instance using Session Manager
I am using Cloudformation to deploy EC2 instances into different VPC's. Using cloudformation I created a role and role profile and attached it to EC2 instance [Role in question is AmazonEC2RoleforSSM ]. Yet I am unable to connect to EC2 using the…

Aniket Paul
- 309
- 1
- 6
- 13
2
votes
1 answer
I want to restrict commands in aws session manager
I am trying to access mongo shell of document db from one instance in session manager mode but while working on session manager .I want to restrict all other commands ok my instance except command mongo.
I went through some aws documentation where…

Rohit Rajak
- 21
- 2
2
votes
1 answer
AWS Session Manager Exception for ListAssociation
Encountered below error while doing health check for session manager on AWS:
amazon-ssm-agent[17614]: 2020-05-19 12:57:35 ERROR [MessagingDeliveryService] [Association] Unable to load instance associations, unable to retrieve associations unable to…

xzk
- 827
- 2
- 18
- 43
2
votes
1 answer
VSCode open-ssh fail : AWS (SessionManagerPlugin is no found)
Thank you for reading.
I successfully set up the ssh config file to loggin to the AWS.
When I try to do ssh login in my local terminal, it works well, but when I try to do using my VSCode Open-SSH extension, it always fails except the first try.
The…

user13004936
- 21
- 2
1
vote
0 answers
DB connection to the AWS istance
I need to set up PostgreSQL db connection for AWS instance.
First i need to create a tunnel to the instance.
I can do this with AWS CLI and session manager, by running:
aws ssm start-session --target --document-name AWS- …

Valentyna Len
- 31
- 2
1
vote
0 answers
How to scp to ec2 instance via session manager
I do not have the Ec2 .pem file and looking to copy a csv file to EC2 instance using session manger. Can anyone please help me with this?

DSi
- 93
- 6
1
vote
2 answers
How to configure AWS Systems Manager Session Manager with CDK
Is there a way to configure the Session Manager via CDK?
I want to change settings like enabling KMS encryption and max session duration as well as writing session data to a S3 bucket. The online documentation from AWS…

p4si
- 23
- 1
- 5
1
vote
1 answer
Why does accessing private EC2 instance via Session Manager need NAT Gateway?
I create two VPCs, one private subnet for each VPC and one EC2 instance (that has a role with the IAM policy "AmazonSSMManagedInstanceCore") for each private subnet. The only difference of these two environments is with/without NAT Gateway.
I tried…

dmjy
- 1,183
- 3
- 10
- 26
1
vote
1 answer
Will a running process in an EC2 instance accessed through Session Manager be terminated if my local machine shuts down?
I am using Windows and connecting to a Linux EC2 instance via Session Manager.
The instance has an S3 bucket mounted, I am running a heavy decompression operation which writes output to the S3 bucket, and this could take over a day to complete.…

Dasph
- 420
- 2
- 15
1
vote
2 answers
How can I resume session with the aws cli?
I've started a session with the command
aws ssm start-session --target --region , and when I do that I get Starting session with SessionId and am logged into the ec2 instance. I then left my computer and the…

lilyrobin
- 63
- 1
- 3
- 10
0
votes
1 answer
How can I add multiple IAM users to Systems Manager with diffent SSM? AWS
I want to log into a IAM user through AWS and my EC2 through systems manager. Then I want to log into different IAM user and access same EC2 except with a different SSM so home dir isn't the same and they don't have access to each others files. How…
0
votes
2 answers
Terraform - EC2 user_data and Sessions Manager (ssm-user)
I am creating an EC2 instance on AWS with Terraform that contains the user_data parameter to install docker and assign it to the user ssm-user.
I don't want to enable the ssh connection (22) and I have only enabled access via Session Manager in…

user1911
- 680
- 1
- 14
- 36