as
  1. Help Center
  2. FAQs
  3. Others
  4. How Does Cloud-Init Influence the AS Service?

How Does Cloud-Init Influence the AS Service?

Cloud-Init is an open-source cloud initialization program, which initializes specified customized configurations, such as the host name, key pair, and user data, of a newly created ECS. When creating an AS configuration, you can use Cloud-Init to initialize the ECS.

If Cloud-Init or Cloudbase-Init is not installed in the private image specified in an AS configuration for an AS group, the following cases occur on the instance created in a scaling action:
  • If an ECS created using a Windows private image without Cloudbase-Init installed is used, the system will display a message indicating that the password for logging in to the ECS cannot be obtained when you obtain the password. In such a case, you can log in to the ECS using only the image password. If the image password has been lost, you can use the password resetting function available on the Elastic Cloud Server page to reset the password.
  • If an ECS created using a Linux private image without Cloud-Init installed is used, the ECS cannot be logged in using the password or key pair configured during ECS creation. In such a case, you can log in to the ECS using only the image password or key pair. If the image password or key pair has been lost, you can use the password resetting function available on the Elastic Cloud Server page to reset the password.
  • If an ECS created using a private image without Cloud-Init or Cloudbase-Init installed is used, user data injection fails.
    To prevent the preceding issues from occurring, check whether the private image in the AS configuration has Cloud-Init or Cloudbase-Init installed before using the AS service. Delete the AS configurations that use the private images without Cloud-Init or Cloudbase-Init installed. Use the private images with Cloud-Init or Cloudbase-Init installed to create new AS configurations. The procedure is as follows:
    1. Log in to the management console.
    2. Under Computing, click Auto Scaling.
    3. Click the AS Configurations tab and query the AS configuration list.
    4. Click Create AS Configuration and select a private image with Cloud-Init or Cloudbase-Init installed to create a desired AS configuration.
    5. Change the AS configuration in the AS group to the newly created one.