Skip to content

Seeking Alternative Architectures for Accessing Private Databases from Local Machines

0

Hello,

I am currently working on an architecture that allows access to private IPs or databases from local machines. This is meant as a temporary solution until our company VPN is fully operational and we can use that. So now we are are exploring temporary solutions.

We have considered using a bastion host, which could be either an EC2 or ECS instance. We also looked into AWS Cloud9 as a managed instance, but unfortunately, it's being discontinued. Maybe AWS Workspaces can provide a solution?

Currently our eyes are set on this: https://dev.to/aws-builders/access-your-aws-database-using-local-port-forwarding-on-your-ecsfargate-container-4nk4 So we use SSM and ECS as a bastion. The advantage of this approach is the utilization of AWS CLI SSO and the AWS SSM start session for port forwarding. Once the SSM session with port forwarding is active, we can access our private databases locally.

We are wondering if we might have overlooked any other potential solutions that meet the following requirements:

  • No VPN
  • Access to private DBs from local machines
  • No EC2 usage

Any suggestions or alternative architectures would be greatly appreciated!

Thank you!

2 Answers
0

Hi,

I would strongly advise to watch this video: https://www.youtube.com/watch?v=buqBSiEEdQc

It's very precise and very clear. Even if you don't exactly follow the proposed solution(s), you will obtain a ton of useful info to derive your own solution for your use case.

Best,

Didier

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

EXPERT

reviewed 2 years ago

  • Thanks for the comment! All of this is familiar to me, i was just wondering if we overlooked any of the AWS services.

0

What your suggesting on your link should work fine.

The other option is AWS Client VPN

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

  • Thanks Gary, appreciated.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.