🔧 Connecting to a private AWS RDS DB using SSM
Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to
Setup a small EC2 instance in a private subnet. Set up IAM roles to ensure it can be accessed via SSM. Ensure its security group allows outbound access to RDS.
Install the session manager plugin.
Run this command to open up a tunnel from your PC to RDS.
aws ssm start-session \
--target i-xxxx \
--document-name AWS-StartPortForwardingSessionToRemoteHost \
--parameters host="db-endpoint",portNumber="5432",localPortNumber="5432"
i-xxxx is your bastion. You can now connect to the DB using 127.0.0.1 as the endpoint and 5432 as the port. Example using Psql
psql -h 127.0.0.1 -p 5432 -U db_user -d db_name
This will also work using PgAdmin.
...
🔧 Connecting to a private AWS RDS DB using SSM
📈 66.73 Punkte
🔧 Programmierung
🔧 Connecting AWS RDS to Spring Boot
📈 34.15 Punkte
🔧 Programmierung
🐧 aws-gate - AWS SSM Session Manager CLI
📈 33.12 Punkte
🐧 Linux Tipps
🔧 Connecting to an RDS instance via Bastion Host
📈 28.28 Punkte
🔧 Programmierung
🔧 AWS Database - Part 1: AWS RDS
📈 26.74 Punkte
🔧 Programmierung
🐧 Migrating MySQL from EC2 to RDS using AWS DMS
📈 24.93 Punkte
🐧 Linux Tipps