- Newest
- Most votes
- Most comments
Hello.
If you cannot use Session Manager, why not try using SSH port forwarding using an EC2 instance as a stepping stone?
If you allow SSH in the inbound rules of the EC2 instance's security group so that you can access it from your local PC, you can use SSH port forwarding with the command introduced in the GitHub blog below.
https://gist.github.com/todgru/9609262?permalink_comment_id=2237371
Hello,
If you had deployed the EC2 instance in a Public subnet, you can perform port forwarding using SSH command:
ssh -i "your-private-key.pem" -L <local_port>:your-rds-endpoint:<target_port_rds> ec2-user@your-ec2-public-dns
You can take a look at this documentation on how to access RDS inside the VPC, https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.Scenarios.html
Thanks for the quick help. I will try this. Besides, I can use the Session Manager (AWS Session Manager Console) but i don't have AWS CLI installed in my local machine. Is there a way i can use this solution "https://repost.aws/questions/QUpMJkHUzZSuezkyCz1ksQng/how-to-access-rds-from-local-machine" without AWS CLI.
My Apologies. I am pasting the same comment.
ThankQ so much. It worked. Just curious. What does the "AWS Session Manager Console" do?. I can create/start a session linking an EC2 instance and it opens a terminal environment in a new tab.
Relevant content
- asked 4 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 months ago
Thanks for the quick help. I will try this. Besides, I can use the Session Manager (AWS Session Manager Console) but i don't have AWS CLI installed in my local machine. Is there a way i can use this solution "https://repost.aws/questions/QUpMJkHUzZSuezkyCz1ksQng/how-to-access-rds-from-local-machine" without AWS CLI.
You cannot use Session Manager from your local machine unless the AWS CLI is installed on your local machine.
ThankQ so much. It worked. Just curious. What does the "AWS Session Manager Console" do?. I can create/start a session linking an EC2 instance and it opens a terminal environment in a new tab.
Connecting with Session Manager from the AWS Management Console is a feature that allows you to connect to the EC2 OS directly from a web browser. Since it is not possible to configure port forwarding using Session Manager from a web browser, please use port forwarding using SSH this time.