Fixed Public Outbound IP

Last updated: 2020-08-31 15:53:55

    Overview

    When accessing a database or third-party service in SCF, you can use the fixed public outbound IP feature of SCF to control and manage the SCF network configuration.

    The fixed public outbound IP feature of SCF has the following capabilities:

    • If fixed public outbound IP is enabled for an SCF function, the function will get a random EIP. The traffic generated by the function accessing the public network will be forwarded based on the EIP.
    • If both public network access and private network access as well as the fixed public outbound IP are enabled for the function, the traffic generated by accessing the public network will be forwarded based on the EIP, while that generated by accessing the private network will be forwarded based on the VPC.

    Use Limits

    • The EIP is shared based on the namespace.
      • Under the same namespace, functions with fixed public outbound IP enabled share the same EIP.
      • If you want to change the fixed outbound IP of a function, you need to disable the fixed public outbound IP feature for all functions under the same namespace. After you enable this feature again, a new EIP will be generated randomly.
    • The EIP is shared based on the subnet of the VPC.
      If a function is configured with a VPC and has fixed public outbound IP enabled, it will get a random EIP. If another function in the same VPC subnet has fixed public outbound IP enabled, it will share the same fixed outbound IP.

    The following example shows the use limits of fixed public outbound IP:

    Note:

    Assume your account has the following objects in a region:

    • Functions a and b have been created under namespace A.
    • Functions c and d have been created under namespace B.
    • EIPs IP-x, IP-y, and IP-z represent three different EIPs.

    Their EIP and function binding relationships are as shown below:

    Network ConfigurationNamespace ANamespace B
    Function aFunction bFunction cFunction d
    Only public network access is enabled No EIP No EIP No EIP No EIP
    Only private network access is enabled No EIP No EIP No EIP No EIP
    Public network access and fixed public outbound IP are enabled EIP IP-x EIP IP-x EIP IP-y EIP IP-y
    The same VPC is used for access, and fixed public outbound IP is enabled EIP IP-z EIP IP-z EIP IP-z EIP IP-z

    Directions

    Note:

    You can have up to 5 fixed pubic outbound IPs in a region. To request an increase in quota, please submit a ticket for application.

    1. Log in to the SCF Console and click Function Service on the left sidebar.
    2. Select the function region at the top of the page and click the function name.
    3. Enter the "Function configuration" tab and click Edit in the top-right corner.
    4. Configure the function network as needed as shown below:

      Note:

      • After public network access is enabled for the function, you can enable fixed public outbound IP.
      • You cannot manually select or edit the randomly generated EIP.

    After completing the configuration, click Save.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help