Updated on 2026-08-26 GMT+08:00

Binding and Unbinding a DNAT Gateway Address

Scenarios

Supabase applications support binding and unbinding DNAT gateways. After configuring a gateway address, you can use an Elastic IP (EIP) and a public port to access the application.

Prerequisites

Precautions

Constraints

  • If a gateway address is already bound to your application, you must unbind it before binding a new gateway address.
  • The gateway and application must be in the same subnet and the EIP cannot be used by any other gateways or applications.

Permission Requirements

  • If you bind a gateway address using a Huawei Cloud account, no additional configuration is required. If you bind it as an IAM user for the first time, you must obtain the permission to create an agency.
  • When configuring policy-based authorization, use IAM project authorization to bind and unbind gateway addresses. Enterprise project authorization is not supported.
  • The IAM user must have the following permissions to bind a gateway address.
    Table 1 Permission requirements for the IAM user to bind a gateway address

    Current IAM Policy

    Required IAM 3.0 Permissions

    Required IAM 5.0 Permissions

    Role/Policy-based (IAM 3.0)

    • gaussdb:instance:unbindPublicIp
    • gaussdb:instance:bindPublicIp
    • gaussdb:instance:list
    • nat:dnatRules:create
    • nat:natGateways:list
    • nat:snatRules:list
    • nat:dnatRules:delete
    • nat:natGateways:get
    • nat:dnatRules:get
    • nat:dnatRules:update
    • nat:dnatRules:list

    If you do not have these permissions, create a custom policy.

    • eip:publicIps:associateInstance
    • eip:publicIps:disassociateInstance
    • nat:natGateways:listTags

    If you do not have these permissions, create a custom identity policy and attach it to the principal.

    Identity policy-based (IAM 5.0)

    N/A

    • nat:dnatRules:create
    • nat:dnatRules:delete
    • nat:dnatRules:get
    • nat:dnatRules:list
    • nat:dnatRules:update
    • nat:natGateways:get
    • nat:natGateways:list
    • nat:natGateways:listTags
    • nat:snatRules:list
    • eip:publicIps:associateInstance
    • eip:publicIps:disassociateInstance

    If you do not have these permissions, create a custom identity policy and attach it to the principal.

Procedure

  1. Log in to the RDS console.
  2. Click in the upper left corner and select a region.
  3. In the navigation pane, choose AI App Dev Platform.

    Figure 1 RDS Supabase application list

  4. On the AI App Dev Platform page, click the target AI application name to open its details page. You can view the network configuration of the application.

    Figure 2 Network configuration of the RDS Supabase application

  5. Click Bind under Gateway Address and configure the gateway address.

    Figure 3 Binding a DNAT gateway address to the RDS Supabase application

    Select the gateway name and EIP, enter a port, and click OK.

  6. Return to the Network Info area and check the binding result.
  1. Log in to the RDS console.
  2. Click in the upper left corner and select a region.
  3. In the navigation pane, choose AI App Dev Platform.

    Figure 4 RDS Supabase application list

  4. On the AI App Dev Platform page, click the target AI application name to open its details page. You can view the network configuration of the application.

    Figure 5 Network configuration of the RDS Supabase application

  5. Click Unbind under Gateway Address to unbind the gateway address.

    Figure 6 Unbinding a DNAT gateway address from the RDS Supabase application

    In the displayed dialog box, click OK.

  6. Return to the Network Info area and check the unbinding result.