tencent cloud

Elastic MapReduce

  • Release Notes and Announcements
  • Product Introduction
  • Purchase Guide
    • EMR on CVM Billing Instructions
    • EMR on TKE Billing Instructions
    • EMR Serverless HBase Billing Instructions
    • EMR Serverless TCBase Billing Overview
  • Getting Started
  • EMR on CVM Operation Guide
    • Planning Cluster
    • Administrative rights
    • Configuring Cluster
    • Managing Cluster
    • Managing Service
    • Monitoring and Alarms
    • TCInsight
  • EMR on TKE Operation Guide
  • EMR Serverless HBase Operation Guide
  • EMR Serverless TCBase Operation Guide
  • EMR Development Guide
    • Hadoop Development Guide
    • Spark Development Guide
    • HBase Development Guide
    • Phoenix on Hbase Development Guide
    • Hive Development Guide
    • Presto Development Guide
    • Sqoop Development Guide
    • Hue Development Guide
    • Oozie Development Guide
    • Flume Development Guide
    • Kerberos Development Guide
    • Knox Development Guide
    • Alluxio Development Guide
    • Kylin Development Guide
    • Livy Development Guide
    • Kyuubi Development Guide
    • Zeppelin Development Guide
    • Hudi Development Guide
    • Superset Development Guide
    • Impala Development Guide
    • Druid Development Guide
    • TensorFlow Development Guide
    • Kudu Development Guide
    • Ranger Development Guide
    • Kafka Development Guide
    • StarRocks Development Guide
    • Flink Development Guide
    • JupyterLab Development Guide
    • MLflow Development Guide
  • Practical Tutorial
    • Practice of EMR on CVM Ops
    • Data Migration
    • Practical Tutorial on Custom Scaling
  • API Documentation
    • History
    • Introduction
    • API Category
    • Making API Requests
    • Cluster Resource Management APIs
    • Cluster Services APIs
    • User Management APIs
    • Information Query APIs
    • Scaling APIs
    • Configuration APIs
    • Other APIs
    • Cluster Lifecycle APIs
    • Serverless HBase APIs
    • YARN Resource Scheduling APIs
    • Data Types
    • Error Codes
  • FAQs
    • EMR on CVM
  • Service Level Agreement
  • Contact Us

Enabling Public Network Access for Instances

Download
Focus Mode
Font Size
Last updated: 2026-09-28 15:06:07
AI-Translated

Overview

By default, TCBase instances are deployed in a virtual private cloud (VPC), isolated from the public network, and do not have the ability to directly access the public network.
If an instance needs to access the public network, for example, when a database UDF calls a third-party API, you can create a NAT gateway to forward the instance's public network traffic through the NAT gateway, thereby achieving secure access to the public network.

Operation Steps

Step 1: Creating a NAT Gateway

For detailed steps on creating a NAT gateway, see Step 1: Creating a NAT Gateway in the Tencent Cloud document Getting Started with NAT Gateway.
Attention:
The VPC configured for the NAT gateway must be consistent with the VPC of the TCBase instance. Otherwise, instance traffic cannot be routed to the NAT gateway.

Step 2: Configuring a Route Table

After creating a NAT gateway, you need to add a routing policy to direct public network traffic from the subnet where the instance resides to the NAT gateway. For detailed operations, see Step 2: Configuring the Route Table Associated with the Relevant Subnets in the Tencent Cloud document Getting Started with NAT Gateway, where:
Destination: Enter the IP range corresponding to the destination public network.
Next Hop Type: Select Public NAT gateway.
Next Hop: Select the ID of the NAT gateway created in step 1.
Attention:
For the destination of the new route, it is recommended that you use the IP range corresponding to the destination public network. Do not configure 0.0.0.0/0 to avoid security risks caused by an excessively broad public network access scope for the instance.

Verifying Public Network Access

After the configuration is complete, you can verify whether the instance can access the public network normally by calling a third-party API through a database UDF.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback