Help Center> Auto Scaling> User Guide> AS Configuration> Creating an AS Configuration from an Existing ECS Instance
Updated on 2023-04-21 GMT+08:00

Creating an AS Configuration from an Existing ECS Instance

Scenarios

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

Procedure

  1. Log in to the management console.
  2. Under Compute, 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

    Choose Use existing ECS > Select ECS.

    In such a case, the parameter settings, such as the ECS type, vCPUs, memory, image, and disk settings (including size, type, encryption, and key) in the AS configuration are the same as those of the selected instance by default.

    Use 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, specify Type, Billed By, and Bandwidth.

    Automatically assign

    Login Mode

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

      Keys are used for authenticating the users who attempt to log in to ECS instances. 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. Without the key, you will not be able to log in to your instance.

    • Password

      The initial password of user root (for Linux) or user Administrator (for Windows) is used for authentication. You can log in to an ECS instance using a username and password combination.

    Admin@123

    Advanced Settings

    This allows you to configure User Data and ECS Group.

    You can select Do not configure or Configure now.

    N/A

    User Data

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

    For details, see Elastic Cloud Server User Guide.

    The following two methods are available:

    • As text: allows you to enter the user data in the text box below.
    • As file: allows you to inject a script or other files when you create an ECS instance.
      NOTE:
      • For Linux, if you use password authentication, this function is not supported.
      • If the selected image does not support user data injection, this function is not supported.

    N/A

    ECS Group

    An ECS group allows you to create ECSs on different hosts to improve service reliability.

    For details, see Managing ECS Groups.

    N/A

  5. Click Create Now.
  6. If you want to use the newly created AS configuration, add it to the AS group. For details, see Changing the AS Configuration for an AS Group.