Skip to content

Instantly share code, notes, and snippets.

@adenot
Created November 5, 2024 02:43
Show Gist options
  • Save adenot/68b56784bd629b8808e8aa82baa0ffa5 to your computer and use it in GitHub Desktop.
Save adenot/68b56784bd629b8808e8aa82baa0ffa5 to your computer and use it in GitHub Desktop.
Port Forward using AWS SSM Session Manager to access private services like RDS
aws ssm start-session --target <instance-id> --document-name AWS-StartPortForwardingSessionToRemoteHost --parameters '{"portNumber":["3306"],"localPortNumber":["3306"],"host":["remote-database-host-name"]}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment