AWS PrivateLink
Cloud service · AWS · Updated

AWS PrivateLink

In short

AWS PrivateLink is a networking service that allows AWS customers to securely access services across the Amazon Web Services (AWS) network in a private manner, without using public IPs or requiring the traffic to traverse the public internet.

Cloud Services Hub →

Free AWS PrivateLink tools

5 key features of AWS PrivateLink

AWS PrivateLink provides secure, private connectivity between VPCs, AWS services, and on-premises applications, reduces network costs, simplifies network architecture, offers scalability and high availability, and supports service integration.

01
Private Connectivity

AWS PrivateLink provides private connectivity between VPCs, AWS services, and on-premises applications, securely on the AWS network. It eliminates the exposure of data to the public internet, enhancing security.

02
Reduced Network Costs

By keeping the traffic within the AWS network and not using the public internet, AWS PrivateLink helps in reducing network costs associated with data transfer.

03
Simplified Network Architecture

PrivateLink simplifies the network architecture by removing the need for IP whitelisting and maintaining access over the internet or through VPNs, making the management of access controls easier and more secure.

04
Scalable and Highly Available

AWS PrivateLink is designed for scalability and high availability, automatically scaling with the increase in traffic demands without requiring manual intervention.

05
Service Integration

It enables integration with AWS Marketplace supported services and AWS services, allowing users to privately access services hosted in other accounts or AWS Marketplace software in a secure manner.

Where AWS PrivateLink is used

AWS PrivateLink enables secure and private connectivity for accessing SaaS applications, inter-service communication, sharing data processing services, and hybrid cloud connectivity, without exposing data to the public Internet.

  1. 01
    Securely Access SaaS Applications

    AWS PrivateLink allows organizations to securely access third-party SaaS applications directly from their Amazon Virtual Private Cloud (VPC) without exposing their network to the public Internet, significantly reducing the risk of Internet-based attacks.

  2. 02
    Inter-Service Communication

    PrivateLink provides a private, secure way for services across different VPCs within the same or different AWS accounts to communicate with each other, ensuring data does not traverse the public internet, thereby enhancing security and performance.

  3. 03
    Sharing Data Processing Services

    Companies that offer data processing services can share their applications with multiple customers securely through AWS PrivateLink, ensuring customers' data is not exposed to the public Internet and is processed securely within the AWS network.

  4. 04
    Hybrid Cloud Connectivity

    AWS PrivateLink facilitates a secure and private connectivity path between AWS and on-premises environments, enabling hybrid cloud architectures without requiring the data to travel over the public Internet, thus maintaining a high degree of privacy and security.

How AWS PrivateLink is priced

AWS PrivateLink pricing includes data processed charges based on gigabytes transferred, hourly rates for endpoint services, and interface VPC endpoint usage.

Data Processed Pricing

Data processing charges apply per gigabyte processed through a VPC endpoint, regardless of the traffic's source or destination.

Cross-Region Service Provider Pricing

Service providers pay a fixed hourly charge per service for each active remote AWS Region, regardless of the number of connected VPC endpoints; partial hours are billed as full hours.

Interface VPC Endpoint Pricing

Interface VPC endpoints incur an hourly charge in each Availability Zone where they are provisioned, with each partial endpoint-hour billed as a full hour.

Gateway Load Balancer Endpoint Pricing

Gateway Load Balancer endpoints incur hourly charges in each Availability Zone where they are provisioned.

Resource and Tunnel Endpoint Pricing

Resource endpoints and tunnel endpoints have hourly endpoint charges.

Cross-Region Data Transfer

For cross-region connectivity, the interface endpoint owner pays AWS cross-region data transfer charges for each gigabyte transferred between Regions in either direction.

Services AWS PrivateLink works with

Amazon VPCAmazon VPC

Allows you to privately access AWS services without traversing the public internet.

Amazon S3Amazon S3

Enables private connectivity to your S3 buckets using interface endpoints.

Amazon RDSAmazon RDS

Resource VPC endpoints provide private connectivity to RDS databases in other VPCs and accounts.

Amazon DynamoDBAmazon DynamoDB

DynamoDB supports private access through AWS PrivateLink interface endpoints; clients must use the VPC endpoint URL directly.

Amazon API GatewayAmazon API Gateway

AWS PrivateLink provides interface VPC endpoints for invoking API Gateway private REST APIs and privately accessing supported API Gateway management APIs.

Amazon AppFlowAmazon AppFlow

AWS PrivateLink lets you access AppFlow APIs through interface VPC endpoints. AppFlow also supports PrivateLink connections to supported SaaS applications, keeping flow traffic off the public internet.

Amazon AthenaAmazon Athena

AWS PrivateLink provides private access to Athena APIs, allowing applications in private subnets to submit queries and check their status without an internet gateway.

Alternatives to AWS PrivateLink in other clouds

Azure

Azure Private Link

AWS PrivateLink and Azure Private Link use private endpoints to connect virtual and on-premises networks to supported services without sending traffic over the public internet. AWS bills interface endpoints by the hour in each provisioned Availability Zone, while Azure bills private endpoints by the hour for their provisioned lifetime.

Compare fact by fact
AWS PrivateLinkAzure Private Link
Hourly endpoint billingPer interface endpoint per zonePer provisioned private endpoint

What is AWS PrivateLink

3 min read

AWS PrivateLink represents a sophisticated networking technology crafted to furnish private connectivity between AWS services, customer VPCs (Virtual Private Clouds), and on-premises networks, eliminating the need to expose traffic to the public internet. This innovative service aims to enhance the security and efficiency of network architecture by facilitating the private transmission of data, thereby significantly reducing the risks associated with data interception or exposure. 

The genesis of AWS PrivateLink is tied to the necessity for a more secure, scalable, and efficient method of accessing AWS services. Traditional models of accessing these services often required the data to traverse the public internet or to be routed via AWS Direct Connect through a public virtual interface to public AWS service endpoints; AWS Direct Connect traffic does not traverse the public internet. With the advent of AWS PrivateLink, AWS sought to obviate these pitfalls by offering a direct, private linkage between the user's VPC and the services they are utilizing. 

At its core, AWS PrivateLink works by creating private endpoints within the user's VPC, which serve as the entry and exit points for traffic between the VPC and the AWS service or application.

Each VPC endpoint supports up to 10 Gbps per Availability Zone by default and automatically scales up to 100 Gbps.

PrivateLink supports several endpoint types: interface endpoints connect to AWS, AWS Partner, and supported AWS Marketplace services; Gateway Load Balancer endpoints connect to appliances; resource endpoints connect to resources such as RDS databases, domain names, and IP addresses in other VPCs and accounts; and service network endpoints connect to Amazon VPC Lattice service networks.

Default adjustable quotas per VPC are 50 interface and Gateway Load Balancer endpoints combined, 200 resource endpoints, and 50 service network endpoints.

Tunnel endpoints provide private access to CIDR ranges in another VPC.

What makes PrivateLink particularly compelling is its ability to work not only with AWS services but also with third-party services hosted on AWS, as well as with applications running in other VPCs. This versatility makes it an indispensable tool for building scalable, secure, and highly available cloud architectures. 

Interface endpoints can also connect to supported VPC endpoint services in other AWS Regions.

One of the standout features of AWS PrivateLink is its ability to help users streamline their network infrastructure. By keeping traffic private and off the public internet, it mitigates the complexity and overhead associated with managing public IP addresses and NAT devices. 

Moreover, it inherently enhances security by reducing the attack surface that is exposed to potential threats. Additionally, AWS PrivateLink offers a compelling value proposition for organizations looking to comply with strict regulatory requirements. For industries that handle sensitive data, such as healthcare and finance, the ability to ensure that data never traverses the public internet can be pivotal in meeting compliance obligations. 

A VPC endpoint policy has a non-adjustable maximum size of 20,480 characters, including whitespace.

In conclusion, AWS PrivateLink represents a paradigm shift in how connectivity between services and applications is managed within the AWS ecosystem. By offering a secure, efficient, and private path for data transmission, AWS PrivateLink not only elevates the security posture of cloud-based network architectures but also streamlines connectivity and fosters compliance with regulatory standards, ultimately enhancing the overall value proposition of cloud services for businesses and organizations of all sizes.

Concepts related to AWS PrivateLink

AWS PrivateLink exam questions

Real practice exam questions on AWS PrivateLink, with the correct answer and its explanation. Answer them with every option in the exam simulator.

AIF-C01

A financial services company runs an application in private subnets in an Amazon VPC. The application uses Amazon Bedrock to summarize confidential reports. Its IAM role already permits the required model invocations. Company policy prohibits internet gateways and NAT gateways for this VPC and requires inference traffic to remain on the AWS network. Which solution BEST meets these requirements?

Show answerCORRECT ANSWER

Create an AWS PrivateLink interface VPC endpoint for the Amazon Bedrock runtime, enable private DNS, and allow HTTPS access from the application.

An interface VPC endpoint for the Bedrock runtime provides private connectivity for model inference without an internet gateway or NAT gateway. Private DNS allows the application to resolve the service hostname to the endpoint's private IP addresses.

MLA-C02

A company uses an AWS PrivateLink interface VPC endpoint for SageMaker Runtime in a shared application VPC. Applications already invoke SageMaker AI real-time endpoints successfully through this interface endpoint. Their IAM roles allow sagemaker:InvokeEndpoint on all inference endpoints in the account. A security review requires that requests passing through this interface endpoint can invoke only the approved fraud-production inference endpoint. Requests to other inference endpoints through this connection must be denied, even when the caller's IAM permissions allow them. The engineer must not change application IAM roles or disrupt private network connectivity. Which solution meets these requirements?

Show answerCORRECT ANSWER

Replace the Runtime interface endpoint's default policy with a policy that allows sagemaker:InvokeEndpoint for all principals only on the ARN arn:aws:sagemaker:<region>:<account-id>:endpoint/fraud-production.

A VPC endpoint policy controls which requests can access a service through that endpoint. Replacing the default full-access policy with an allow limited to the approved inference endpoint ARN implicitly denies invocation of other endpoints through this connection. The caller must still have the necessary IAM permissions; the endpoint policy does not grant permissions independently.

SAP-C03

A company runs applications in six VPCs in one AWS Region. Each VPC has application instances evenly distributed across the same two Availability Zones. Each VPC exchanges 20,000 GB per month with a third-party analytics service, with half the traffic originating in each Availability Zone. The service offers both a public HTTPS endpoint and an AWS PrivateLink endpoint service in both Availability Zones.

Currently, each application uses a NAT gateway in its own Availability Zone to access the public endpoint. The company also has an existing shared-services VPC and AWS Transit Gateway connectivity to all application VPCs. The VPC CIDR ranges do not overlap. NAT gateways and the transit gateway must remain for unrelated traffic.

A solutions architect must minimize the incremental monthly network cost of accessing the analytics service without relocating application instances. Use these pricing assumptions: interface endpoints cost $0.01 per endpoint Availability Zone-hour plus $0.01 per GB processed; NAT gateway processing costs $0.045 per GB; transit gateway processing costs $0.02 per GB traversing the transit gateway; and client-to-endpoint traffic crossing Availability Zones incurs a combined additional charge of $0.02 per GB. Use 730 hours per month. The traffic volumes already include requests and responses. Ignore other charges and assume sufficient capacity for every design.

Which solution meets the requirement?

Show answerCORRECT ANSWER

Create an interface endpoint in each application VPC with a network interface in each application Availability Zone. Configure applications to use the endpoint's zonal DNS name corresponding to their own Availability Zone.

This design bypasses NAT gateway and transit gateway processing and keeps client-to-endpoint traffic within its originating Availability Zone. The monthly cost is 12 endpoint Availability Zones × 730 hours × $0.01, plus 120,000 GB × $0.01, totaling $1,287.60. The additional endpoint hourly cost is much smaller than the processing or cross-AZ charges incurred by the alternatives.

Practice AWS PrivateLink in a full exam

Questions on AWS PrivateLink in each practice exam, with every answer option and an explanation for each:

Start a free practice exam

Learn AWS PrivateLink in lessons

13 short lessons on AWS PrivateLink in 9 certification courses.

and 7 more lessons

Open the lessons

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.