Azure SQL (private Endpoint) to AWS lambda access

SujinaSJ-1789 271 Reputation points
2023-08-25T14:01:44.68+00:00

Hi All,

We have an Azure SQL server with private endpoint and it needs to be accessed by an AWS lambda service which is public (no VPC endpoint configured). Can we get the IP for this lambda service which can be whitelisted at the the SQL server Firewall rules? If yes, how can we get the IP assigned to this AWS lambda service (ap-southeast-2)?

TYIA

Azure Private Link
Azure Private Link
An Azure service that provides private connectivity from a virtual network to Azure platform as a service, customer-owned, or Microsoft partner services.
550 questions
SQL Server | Other
{count} votes

Accepted answer
  1. ChaitanyaNaykodi-MSFT 27,476 Reputation points Microsoft Employee Moderator
    2023-08-26T06:02:51.8166667+00:00

    @SujinaSJ-1789

    Thank you for reaching out.

    Based on your question above I understand you have an Azure SQL server with private endpoint and it needs to be accessed by an AWS lambda service. Lambda service has a public IP address assigned and no VPC endpoint configured yet. You want to know if you can IP address of the Lamda service whitelisted in SQL Firewall rules and access the private endpoint IP address.

    Based on my understanding above. Communication cannot be established between AWS lambda service's Public IP and Azure SQL server's private endpoint IP address(private IP). If you want to establish the communication via private network i.e Lambda Service (with VPC endpoint) will establish connectivity with private endpoint IP of the SQL server. In this case below will be the high-level requirements.

    • Get a private IP address access enabled for your Lambda Service.
    • Create a Site-to-Site VPN between Azure and AWS as this help establish a private connectivity between two networks. You can follow this documentation for implementation. This will allow communication between AWS Lambda's Private IP and private endpoint.
    • Add the Lambda's private IP above to SQL server's firewall.

    Hope this helps! Please let me know if you have any additional questions. Thank you!


    ​​Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.