Help Center/ Auto Scaling/ User Guide (ME-Abu Dhabi Region)/ AS Management/ AS Configuration/ Using an Existing ECS to Create an AS Configuration
Updated on 2022-02-22 GMT+08:00

Using an Existing ECS to Create an AS Configuration

Scenarios

You can use an existing ECS to rapidly create an AS configuration. In such a case, the parameter settings, such as the vCPUs, memory, image, disk, and ECS type in the AS configuration are the same as those of the selected ECS by default.

Procedure

  1. Log in to the management console.
  2. Under Computing, click Auto Scaling. In the navigation pane on the left, choose Instance Scaling.
  3. Click Create AS Configuration.
  4. Set the parameters for the AS configuration. Table 1 lists the AS configuration parameters.
    Table 1 AS configuration parameters

    Parameter

    Description

    Example Value

    Region

    A region is where an AS configuration resides.

    N/A

    Name

    Specifies the name of an AS configuration.

    N/A

    Configuration Template

    Select Use specifications of an existing ECS and click Select ECS.

    The ECS type, vCPUs, memory, image, and disk information in the AS configuration are the same as those of the selected ECS by default.

    Use specifications of an existing ECS

    EIP

    An EIP is a static public IP address bound to an ECS in a VPC. Using the EIP, the ECS provides services externally.

    The following options are provided:
    • Do not use

      An ECS without an EIP cannot access the Internet. However, it can still be used as a service ECS or deployed in a cluster on a private network.

    • Automatically assign

      An EIP with a dedicated bandwidth is automatically assigned to each ECS. The bandwidth size is configurable.

    NOTE:

    If you select Automatically assign, you need to specify Type, Bandwidth Type, Billed By, and Bandwidth.

    Automatically assign

    Bandwidth Type

    You can select Dedicated or Shared.

    • Dedicated: The bandwidth can be used by only one EIP.
    • Shared: The bandwidth can be used by multiple EIPs.
    NOTE:
    • This parameter is available only when EIP is set to Automatically assign.
    • If you select Dedicated, you can select Bandwidth or Traffic for Billed By.
    • The shared bandwidth can be billed only by bandwidth. You can select a shared bandwidth to which the EIP is to be added.

    Shared

    Login Mode

    An ECS can be authorized using a key pair or a password.
    • Key pair

      In this mode, keys are used for authenticating the users who attempt to log in to target ECSs. If you select this mode, create or import a key pair on the Key Pair page.

      NOTE:

      If you use an existing key, make sure that you have saved the key file locally. Otherwise, logging in to the ECS will fail.

    • Password

      In this mode, the initial password of user root (for Linux) or user Administrator (for Windows) is used for authentication. You can log in to an ECS using the username and its initial password.

    Admin@123

    Advanced Settings

    This allows you to configure User Data Injection.

    You can select Do not configure or Configure now.

    N/A

    User Data Injection

    Enables the ECS to automatically inject user data when the ECS starts for the first time. This configuration is optional. After this function is enabled, the ECS automatically injects user data upon its first startup.

    For details, see Elastic Cloud Server User Guide.

    The following methods are available:

    • As text: allows you to enter the user data in the text box below.
    • As file: allows you to inject script files or other files when you create an ECS. If you select As file, the system automatically injects the files into a specified directory when creating an ECS.
      • For Linux, specify the path for storing the injected file, for example /etc/foo.txt.
      • For Windows, the injected file is automatically stored in the root directory of disk C. You only need to specify the file name, such as foo. The file name can contain only letters and digits.
      NOTE:
      • For Linux, if you use the password authentication mode, the user data injection function is unavailable.
      • If the selected image does not support user data injection, the user data injection function is unavailable.

    -

  5. After setting the parameters, click Create Now.
  6. If you want to use the newly created AS configuration, add it to the AS group. For details, see Replacing AS Configuration in an AS Group.
  7. (Optional) Enable the AS group.

    If the AS group is in Disabled state, enable it. For details, see Enabling an AS Group.