Organizations using Apache Kafka, Confluent Cloud for Apache Flink, and Tableflow often need to process streaming data while keeping access to their services within private networks. This becomes especially important when applications handle financial transactions, customer information, operational events, or other data that must follow strict security requirements.
Confluent Cloud provides private networking options for accessing Flink and Kafka. Tableflow also supports AWS PrivateLink for accessing its Apache Iceberg REST Catalog from an Amazon VPC. These capabilities allow organizations to build data processing and analytics architectures without depending on publicly accessible service endpoints.
However, connecting Flink and Tableflow requires understanding two different networking paths. Flink private networking controls how clients access the Flink service and how Flink accesses private Kafka clusters. Tableflow's AWS PrivateLink integration provides private access to its Iceberg REST Catalog for external query engines and catalog integrations.
This article explains how these connections work, how to configure them using AWS PrivateLink, and what to consider when designing a private streaming and analytics architecture.
Understanding Confluent Flink and Tableflow
Before configuring private networking, it is useful to understand the responsibilities of both services.
Confluent Cloud for Apache Flink
Confluent Cloud for Apache Flink is a managed stream processing service that allows developers to process Kafka data using SQL and Apache Flink capabilities.
For example, an application may publish order events to a Kafka topic. Flink can read those events, filter records, calculate aggregates, and write the results to another topic.
A simple streaming SQL statement might look like this:
INSERT INTO processed_orders
SELECT
order_id,
customer_id,
total_amount
FROM order_events
WHERE order_status = 'COMPLETED';
Flink can process data stored in Confluent Cloud Kafka clusters. With private networking enabled, the required connectivity can be established without sending the relevant traffic over the public internet.
Tableflow
Tableflow makes Kafka topic data available in analytical table formats such as Apache Iceberg and Delta Lake.
Instead of requiring an analytics application to consume raw Kafka messages and build its own tables, Tableflow materializes supported Kafka topics into tables that external query engines can access.
For example, an application may produce order events into a Kafka topic. Tableflow can make that data available as an Iceberg table for analytical workloads.
External tools such as Apache Spark, Trino, and AWS Glue can use the Tableflow Iceberg REST Catalog to discover and query those tables.
The catalog provides metadata access, while the actual table data is stored in the configured storage location.
Why Use AWS Private Networking?
Public endpoints are convenient, but some organizations do not want their applications or analytics services to access data platforms through public network paths.
AWS PrivateLink provides private connectivity between services using private IP addresses in an Amazon VPC.
For a Confluent architecture, private networking can help with:
Keeping Flink access traffic within approved private network paths.
Accessing Kafka clusters without relying on public cluster endpoints.
Allowing external query engines to access the Tableflow catalog privately.
Reducing exposure of service endpoints to public networks.
Supporting security policies that require private connectivity.
Integrating Confluent Cloud with existing AWS network controls.
Private connectivity does not replace authentication, authorization, or encryption. Confluent Cloud connections still use TLS and require supported authentication mechanisms.
Understanding the Two Private Networking Paths
One important point is that Flink private networking and Tableflow catalog private networking are separate configurations.
They serve different purposes and should be planned independently.
Component | Networking direction | Purpose |
|---|
Flink PrivateLink Gateway | AWS VPC to Confluent Cloud | Allows clients to access Flink privately |
Flink-to-Kafka connectivity | Internal Confluent Cloud networking | Allows Flink to read and write Kafka data |
Tableflow PrivateLink Gateway | AWS VPC to Confluent Cloud | Provides private access to the Iceberg REST Catalog |
Tableflow interface VPC endpoint | Inside AWS VPC | Connects query engines to the private catalog |
Route 53 private hosted zone | Inside AWS VPC | Resolves the Tableflow catalog hostname to the private endpoint |
The Flink connection is primarily used by clients submitting SQL statements and retrieving results. The Tableflow connection is used by external analytics applications and catalog integrations that need to access Iceberg metadata.
Configuring a private endpoint for one service does not automatically make the other service private.
Configuring Private Networking for Confluent Flink
Confluent Cloud supports multiple private networking options for Flink, including PrivateLink Gateway, Confluent Cloud Network, Private Network Interface, and Egress PrivateLink endpoints.
For an AWS-based architecture, the appropriate option depends on the existing Confluent cluster type and network configuration.
Choosing the right networking option
Option | Direction | Availability |
|---|
PrivateLink Gateway | Inbound | AWS, Azure, and Google Cloud |
Confluent Cloud Network | Inbound | AWS and Azure |
Private Network Interface | Inbound | AWS Enterprise and Freight clusters |
Egress PrivateLink endpoint | Outbound | AWS and Azure |
For a new AWS deployment that needs a straightforward private connection to Flink, PrivateLink Gateway is a useful option.
If an organization already uses a Confluent Cloud Network for a Dedicated Kafka cluster, it may be possible to reuse that network for Flink.
Prerequisites
Before configuring Flink private networking, make sure you have:
An active Confluent Cloud environment.
A supported Kafka cluster and Flink region.
An AWS VPC with the required private subnets.
Permissions to create AWS interface VPC endpoints.
Appropriate Confluent Cloud permissions to manage network resources.
DNS resolution configured for the private endpoint.
The Confluent Cloud account must also have the required networking permissions. OrganizationAdmin, EnvironmentAdmin, or NetworkAdmin roles can be used for the documented Flink private networking setup.
Step 1: Create a PrivateLink Gateway
Open the Confluent Cloud Console and select the environment where you want to configure Flink.
Navigate to Network management and open the For serverless products section.
Select the option to add a gateway configuration and choose PrivateLink.
Configure the following details:
Setting | Example |
|---|
Gateway name | flink-private-gateway |
Cloud provider | AWS |
Region | Your AWS region |
Gateway type | PrivateLink |
After creating the gateway, Confluent Cloud provides a PrivateLink service identifier.
Keep this identifier because AWS needs it when creating the interface endpoint.
Step 2: Create an AWS Interface VPC Endpoint
Open the AWS Management Console and navigate to VPC endpoints.
Create a new endpoint with the following settings:
Endpoint type: Interface.
Service name: PrivateLink service identifier provided by Confluent Cloud.
VPC: Your application VPC.
Subnets: Private subnets in the required availability zones.
Security group: A group that permits the required client traffic.
The endpoint provides private connectivity from your AWS VPC to the Confluent Cloud gateway.
The endpoint configuration and DNS requirements depend on the selected networking option. Follow the Flink PrivateLink Gateway procedure for the exact DNS configuration.
Step 3: Register the VPC Endpoint
Return to Confluent Cloud and create a PrivateLink Access Point for the gateway.
Provide the AWS VPC endpoint ID.
The access point registers the endpoint with Confluent Cloud and allows the connection to be accepted.
Wait until the access point reports Ready and the AWS endpoint reports Available.
Step 4: Configure DNS Resolution
Private DNS resolution is necessary for applications to use the correct Flink endpoint.
Configure the appropriate DNS records according to the gateway's DNS domain and the endpoint information provided by Confluent Cloud.
If your developers access Flink from outside the VPC, such as from a workstation or corporate network, you may also need a reverse proxy or another approved network path into the VPC.
After DNS configuration is complete, clients inside the approved private network can access Flink using the private endpoint.
Configuring Tableflow Access Through AWS PrivateLink
Tableflow provides a separate private networking capability for its Iceberg REST Catalog.
This is useful when an analytics application runs inside an AWS VPC that does not have internet access or when organizational policies require catalog requests to remain on a private network.
The connection uses three main components:
An ingress PrivateLink Gateway in Confluent Cloud.
An AWS interface VPC endpoint.
A Route 53 private hosted zone.
The query engine uses the private catalog hostname to access Tableflow metadata. The actual table data files are read directly from the configured storage bucket.
Prerequisites
Before starting, make sure you have:
A Confluent Cloud Kafka cluster running on AWS.
At least one Tableflow-enabled topic using Iceberg format.
A Tableflow topic in the Running state.
An AWS VPC in the same region as the gateway.
Private subnets with DNS hostnames and DNS resolution enabled.
Permissions to create interface VPC endpoints and Route 53 private hosted zones.
A Tableflow API key and secret.
Your Confluent Cloud organization ID and environment ID.
An important limitation is that private ingress connectivity to the Tableflow Iceberg REST Catalog is available on AWS. This specific Tableflow catalog connectivity option is not supported on Azure or Google Cloud.
Step 1: Create the Tableflow PrivateLink Gateway
In Confluent Cloud, open the environment containing your Kafka cluster.
Navigate to Network management and select the For serverless products tab.
Choose Add gateway configuration and create a new ingress PrivateLink Gateway.
Select AWS as the cloud provider and choose the AWS region containing your VPC.
You can also create the gateway using the Confluent CLI:
confluent network gateway create my-ingress-gateway \
--cloud aws \
--region us-west-2 \
--type ingress-privatelink \
--environment <env-id>
Replace the region and environment ID with your actual values.
To inspect the gateway:
confluent network gateway describe <gateway-id> \
--environment <env-id>
Note the AWS VPC Endpoint Service Name returned by the command.
Step 2: Create the AWS Interface Endpoint
Open the AWS VPC console and navigate to PrivateLink and Lattice endpoints.
Create an interface endpoint using the service name provided by Confluent Cloud.
The following AWS CLI command demonstrates the configuration:
aws ec2 create-vpc-endpoint \
--vpc-id <vpc-id> \
--vpc-endpoint-type Interface \
--service-name <privatelink-service-id> \
--subnet-ids <private-subnet-ids> \
--security-group-ids <security-group-id> \
--no-private-dns-enabled
Replace the placeholders with your AWS resource identifiers.
Select private subnets in the availability zones you use. The endpoint security group should allow inbound TCP 443 from the client hosts that need access to the catalog.
Keep private DNS disabled for this endpoint because the Tableflow hostname will be configured manually through Route 53.
After creating the endpoint, save its VPC endpoint ID.
The endpoint may initially show Pending acceptance. This is expected because the access point has not yet been registered in Confluent Cloud.
Step 3: Create the PrivateLink Access Point
Return to Confluent Cloud and open the gateway you created.
Create a new access point and provide the AWS VPC endpoint ID.
After the access point is created, wait until its status becomes Ready.
The AWS endpoint should then move to Available.
Confluent Cloud also provides a DNS domain associated with the access point.
For example:
ap123456.us-west-2.aws.accesspoint.confluent.cloud
The access point ID in this example is ap-123456. The hyphen is removed when constructing the DNS domain.
Keep the access point ID and DNS domain because they are required to build the Tableflow catalog hostname.
Step 4: Build the Private Tableflow Catalog URL
The Tableflow catalog hostname follows this format:
tableflow-<accesspointId>.<region>.aws.accesspoint.glb.confluent.cloud
For example:
tableflow-ap123456.us-west-2.aws.accesspoint.glb.confluent.cloud
The Iceberg REST Catalog URL follows this structure:
https://<catalog-hostname>/iceberg/catalog/organizations/<org-id>/environments/<env-id>
A complete example looks like this:
https://tableflow-ap123456.us-west-2.aws.accesspoint.glb.confluent.cloud/iceberg/catalog/organizations/abc123/environments/env456
Replace the organization and environment identifiers with the actual values from your Confluent Cloud account.
The same catalog hostname and base URL serve Tableflow clusters in the environment. The cluster ID is used as a namespace when accessing the catalog.
Step 5: Configure Route 53 Private DNS
The private catalog hostname must resolve to the AWS interface endpoint from inside your VPC.
Open Route 53 and create a private hosted zone using the DNS domain provided by the access point.
For example:
ap123456.us-west-2.aws.accesspoint.confluent.cloud
Associate the private hosted zone with the VPC containing the interface endpoint.
Inside the hosted zone, create a CNAME record:
Setting | Value |
|---|
Record name | tableflow |
Record type | CNAME |
Value | AWS VPC endpoint DNS name |
TTL | 60 seconds |
The record maps the Tableflow catalog hostname to the interface endpoint's DNS name.
For example, the record name becomes:
tableflow.ap123456.us-west-2.aws.accesspoint.confluent.cloud
The public catalog hostname resolves through DNS to this access point domain. The private hosted zone then resolves the Tableflow record to the AWS endpoint DNS name.
Keep the VPC configured to use the Amazon-provided DNS resolver so that the initial public DNS lookup can resolve correctly before the private hosted zone handles the next step.
Verifying the Tableflow Private Connection
After configuring the gateway, endpoint, access point, and DNS, test the connection from an EC2 instance or another client running inside the VPC.
Check DNS resolution
Run:
getent hosts <catalog-hostname>
The hostname should resolve to private IP addresses associated with the interface endpoint.
For example:
getent hosts \
tableflow-ap123456.us-west-2.aws.accesspoint.glb.confluent.cloud
If the hostname does not resolve, check the Route 53 private hosted zone, its VPC association, and the CNAME record.
Request an OAuth token
Tableflow uses API key and secret credentials to authenticate catalog requests.
You can request an access token using:
TOKEN=$(curl -s -X POST <catalog-uri>/v1/oauth/tokens \
-d grant_type=client_credentials \
-d scope=catalog \
-d client_id=<tableflow-api-key> \
--data-urlencode client_secret=<tableflow-api-secret> \
| jq -r .access_token)
Store credentials securely. Do not hardcode production API secrets in scripts, source control, or application logs.
Test catalog access
Use the token to request the available namespaces:
curl -s \
-H "Authorization: Bearer $TOKEN" \
<catalog-uri>/v1/namespaces
A successful response returns the catalog namespaces, including the namespace associated with your Tableflow cluster.
This confirms that the client can reach the catalog through the private endpoint and authenticate successfully.
Querying Tableflow Tables From AWS
Once the private catalog connection is available, an external query engine can use the Tableflow Iceberg REST Catalog.
Apache Spark is one example.
For a Spark environment, configure the Iceberg REST catalog with the private catalog URL and the Tableflow credentials.
A simplified Spark SQL startup configuration looks like this:
spark-sql \
--conf spark.sql.extensions=org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions \
--conf spark.sql.catalog.tf=org.apache.iceberg.spark.SparkCatalog \
--conf spark.sql.catalog.tf.type=rest \
--conf spark.sql.catalog.tf.uri=<catalog-uri> \
--conf spark.sql.catalog.tf.credential=<api-key>:<api-secret> \
--conf spark.sql.catalog.tf.oauth2-server-uri=<catalog-uri>/v1/oauth/tokens \
--conf spark.sql.catalog.tf.scope=catalog \
--conf spark.sql.catalog.tf.io-impl=org.apache.iceberg.aws.s3.S3FileIO \
--conf spark.sql.catalog.tf.client.region=<region>
The Spark environment needs the compatible Iceberg runtime and AWS bundle dependencies.
You can then list the namespaces:
SHOW NAMESPACES IN tf;
To query a Tableflow table:
SELECT *
FROM tf.`<cluster-id>`.<topic-name>
LIMIT 10;
The table is read-only for external query engines. Writes to the underlying Tableflow-managed table must go through the supported Tableflow workflow.
Understanding catalog access versus data access
One important detail is that PrivateLink connectivity to the Tableflow catalog does not automatically make the storage bucket private or configure access to its files.
The catalog provides metadata and information about the table. The query engine reads the actual data files directly from the configured storage bucket.
For custom Amazon S3 storage, configure the appropriate IAM permissions and network access separately. A typical Spark role needs permissions such as:
s3:GetObject
s3:ListBucket
s3:GetBucketLocation
If the VPC has no internet or NAT access, plan the required private connectivity to AWS services used by the application, including S3.
Where Does Flink Fit Into the Tableflow Architecture?
Flink and Tableflow serve different parts of the data lifecycle.
Flink processes streaming data from Kafka. Tableflow materializes supported Kafka topics into analytical table formats.
A typical architecture looks like this:
Application Services
|
v
Kafka Topics
|
+----------------------+
| |
v v
Confluent Flink Tableflow
| |
v v
Processed Kafka Iceberg Tables
Topics |
| |
v v
Downstream Apps Iceberg REST Catalog
|
v
AWS PrivateLink
|
v
AWS VPC Endpoint
|
v
Spark / Trino / AWS Glue
Flink and Tableflow can work with the same Kafka-based data platform, but the private networking setup depends on which service a client needs to access.
There is also an important limitation when querying Tableflow tables from Confluent Cloud for Apache Flink: Flink supports snapshot queries for Tableflow tables, not streaming queries. It also cannot query arbitrary Iceberg or Delta Lake tables that were not written by Tableflow.
Therefore, do not assume that enabling private networking automatically creates a continuous Flink-to-Tableflow streaming connection. Use Kafka topics for streaming processing and Tableflow tables for supported analytical snapshot access.
Troubleshooting Common Private Networking Problems
Private connectivity involves several components, so a failure can occur at the DNS, endpoint, authentication, or authorization layer.
Problem | Possible cause | What to check |
|---|
Gateway remains in Provisioning | Access point setup is incomplete | Verify the VPC endpoint registration |
AWS endpoint remains Pending acceptance | Access point has not accepted the endpoint | Check the gateway and access point status |
Catalog hostname does not resolve | Private hosted zone or CNAME is incorrect | Verify the Route 53 zone and VPC association |
Connection times out | Security group does not allow HTTPS traffic | Allow TCP 443 from authorized clients |
OAuth token request fails | Incorrect API key, secret, or request parameters | Verify credentials and token endpoint |
Catalog returns authorization errors | The service account lacks required permissions | Review Tableflow API access and authorization |
Spark can access the catalog but cannot read data | Storage bucket access is missing | Check IAM permissions and S3 connectivity |
Flink cannot access a private Kafka cluster | Flink networking is not configured for the cluster | Review the Flink private networking setup |
For AWS Glue integrations, additional connectivity may be required for AWS Secrets Manager, AWS STS, and AWS KMS. If the Glue subnet has no NAT gateway, configure the required interface VPC endpoints.
It is also important to verify that the Glue execution role has the permissions required to create and manage network interfaces.
Security Best Practices
Private networking should be combined with proper identity and access controls.
Use separate security groups for different workloads. For example, allow only approved application hosts to reach the Tableflow catalog endpoint on TCP 443.
Keep API keys and secrets in AWS Secrets Manager or another approved secret management service. Avoid exposing credentials through shell history, source control, or application logs.
Use dedicated service accounts for production Flink statements and grant only the required permissions on Kafka topics and other Confluent resources.
Review Route 53 private hosted zones regularly, especially when adding new VPCs or changing endpoint configurations.
Finally, monitor endpoint status, DNS resolution, authentication failures, and application connectivity. A private endpoint can be healthy while an application still fails because of an incorrect DNS record or missing authorization.
Advantages and Limitations
Using AWS PrivateLink for Flink and Tableflow provides several advantages:
Private access to Confluent Cloud services from AWS VPCs.
Reduced dependency on public service endpoints.
Better integration with existing AWS network security controls.
Private catalog access for Spark, Trino, and AWS Glue workloads.
Support for architectures with restricted internet access.
Separate control over Flink access and Tableflow catalog access.
There are also limitations to consider:
Flink and Tableflow require separate networking configurations.
Tableflow catalog ingress private networking is currently AWS-specific.
The catalog connection does not automatically provide private access to S3 data files.
Private DNS configuration requires careful planning.
External query engines still need valid authentication and storage permissions.
Flink can query Tableflow tables only through supported snapshot queries, not streaming queries.
These limitations should be considered before designing the network architecture, particularly when the environment contains multiple VPCs, regions, or analytics platforms.
Summary
Connecting Confluent Cloud for Apache Flink and Tableflow through AWS private networking requires understanding the separate connectivity requirements of both services.
Flink supports private access through options such as PrivateLink Gateway, Confluent Cloud Network, and Private Network Interface. Tableflow provides AWS PrivateLink access to its Iceberg REST Catalog through an ingress gateway, an AWS interface endpoint, and Route 53 private DNS.
Once configured, external analytics applications can access Tableflow metadata through the private catalog endpoint while reading the actual table data from the configured storage bucket.
The most important design consideration is to treat Flink connectivity, Tableflow catalog access, and storage access as separate parts of the architecture. Configure and test each path independently, protect credentials, and verify DNS and authorization before moving workloads into production.
Join the conversation! Your thoughts help the community grow.