49 questions
0 votes
0 answers
56 views
Using SSMSessionRunAs from a primary user when switching roles in the AWS console
We each have a primary AWS user account that we use to log in to the AWS console. We use Session Manager to access Linux instances, automatically logging in to them as a specific OS user based on the ...
0 votes
0 answers
84 views
How do I setup an AWS-DMS endpoint for an on-prem server that is accessible through AWS SSM Session Manager?
I'm looking for ways to replicate a Postgres database on an on-prem server to AWS RDS. I normally connect to the database via AWS SSM Session Manager (because the ip address keeps changing). Ideally, ...
0 votes
0 answers
346 views
Error "TargetNotConnected" when attempting to start an SSM session with IoT device using boto3
I'm working with AWS Systems Manager (SSM) to remotely connect to an IoT device via SSH using a Python script. The script uses the boto3 library to start an SSM session, but I'm encountering an error ...
0 votes
1 answer
397 views
SSM Issue ( Aws Session manager)
SSM Agent is not online The SSM Agent was unable to connect to a Systems Manager endpoint to register itself with the service. I created new ec2 but this is the error I'm getting while accessing the ...
2 votes
1 answer
17k views
Can't connect to my EC2 instance with SSM : SSM Agent is not online [closed]
I would like to use Session Manager to connect to my instance. I have created a role with those policies : AmazonEC2RoleforSSM AmazonSSMFullAccess And attached with my instance, from debian official ...
0 votes
0 answers
21 views
Connect to a database from EC2 SSM session [duplicate]
I could use: psql --host=myrds.crypticxxxx.us-east-1.rds.amzaonaws.com -port=5432 -username='devuser' -dbname='postgre'. But in the same terminal, with Python 3.7.16, with Amazon, Linux 2, and the ...
0 votes
1 answer
279 views
Granting EC2 Access Without Circulating SSH Keys: Best Practices
In our organization, we manage a considerable number of EC2 instances. In past we've been distributing SSH keys to users for login access, but this approach poses security risks if the keys are ...
0 votes
0 answers
227 views
AWS CLI - SSM Start Session - Execute Commands on EC2 instance after starting Session Manager using PowerShell Script
I am writing a PowerShell script that access the file on ec2 instance using session manager with AWS CLI, calculate checksum of it and retrieve the checksum result. I can be able to start the session ...
0 votes
0 answers
338 views
EC2 Can't connect to your instance via Session Manager
EC2 Can't connect to your instance via Session Manager, the EC2 have same role as different EC2 that have Session Manager access. EC2 that don't work is in same subnet that EC2 that work. Any ...
2 votes
0 answers
561 views
how to send the logs from spring boot application to aws cloudwatch logs through ec2 session manager?
i have installed the cloudwatch agent and have given the right iam permissons to the role but the spring boot logs are not coming just ec2 logs are coming, what should i do to get the spring boot logs ...
0 votes
1 answer
1k views
VSCode Remote-SSH with AWS Session Manager and AWS SSO (CLI): Permission denied (public key)
I'm trying to access a private EC2 instance from a local Visual Studio Code IDE with Session Manager and AWS SSO (CLI). I have the following in ~/.ssh/config: Host i-0dXXXXXXXXXX User ubuntu ...
1 vote
0 answers
195 views
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 &...
3 votes
1 answer
2k views
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 ...
0 votes
1 answer
224 views
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 ...
2 votes
0 answers
4k views
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?