1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
Hi.
Lightsail has a VPC peering feature.
However, you can only peer with the default VPC.
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.
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전
Thanks for your response. Will this configuration also work with connecting to MSSQL DB?
Yes. You can also connect with MSSQL.
Only the port number is different.
I tried your scenario and put it together in an article. I verified it with MySQL, but it should work with MSSQL as well.
https://dev.classmethod.jp/articles/lightsail-connect-vpc-rds/