Applications running on TEM usually need public network access, and also require allowlist access in scenarios such as mini programs. In these cases, the application should have a fixed public IP.
This document describes how to enable public network access of the applications deployed on TEM.
The applications are deployed in a TEM environment, which associates with your VPC. In other words, they are essentially deployed in your VPC. You can configure a NAT Gateway instance and associate it with an EIP for your VPC, allowing the applications in your VPC to access the public network.
Configure the applications in the TEM console as instructed in Creating Environment and Creating and Deploying Application.
Log in to the NAT Gateway console, select the region where the TEM applications are deployed, and click +New to create a NAT Gateway instance.
Log in to the TEM console and access the Environment page. Select the environment in which the TEM applications are deployed to enter its details page.
Click the VPC next to Cluster Network to enter the VPC details page.
Select the Route Table module.
Click Create on the Route Table page to configure a route table.
0.0.0.0/0
, all traffic will be forwarded to the NAT Gateway.For detailed directions, see Creating Custom Route Tables.
On the Route Table page, locate the route table just created, and click More > Associated Subnets under the Operation column. In the pop-up window, select the subnet associated with the environment in which the TEM applications are deployed.
The NAT Gateway and EIP will be charged separately. For pricing details, see:
Was this page helpful?