Connect Lightsail instance to AWS instance in a private subnet

0

Hi - I am trying to access Windows SQL server running in a private subnet in AWS from another Windows instance in Lightsail. There are multiple subnets in the same VPC, some are private and others are public. How can (only) allow Lightsail instance to access DBs in SQL server? Thanks

1개 답변
0

Hi.

Lightsail has a VPC peering feature.
However, you can only peer with the default VPC.

https://lightsail.aws.amazon.com/ls/docs/en_us/articles/lightsail-how-to-set-up-vpc-peering-with-aws-resources

If you have an RDS resource other than the default VPC, you can place the NLB in front of the RDS and use the endpoint service to establish a connection route from the default VPC to the RDS with an IP address target.

https://dev.classmethod.jp/articles/nlb-bastion-for-rds/

I have successfully connected to Lightsail-> Endpoint on Default VPC-> NLB-> RDS with this configuration.

profile picture
전문가
iwasa
답변함 2년 전
profile picture
전문가
검토됨 9달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠