Help Center/ Auto Scaling/ User Guide (Kuala Lumpur Region)/ FAQs/ Others/ How Can I Automatically Deploy My Application on an Instance?
Updated on 2022-08-15 GMT+08:00

How Can I Automatically Deploy My Application on an Instance?

To enable automatic application deployment on instances automatically added to an AS group, create a private image with the application preinstalled and automatic startup settings preconfigured. Create an AS configuration with the private image, and the change the AS configuration used by the AS group to the one you created. Your application will be automatically deployed on instances that are automatically added to the AS group. The procedure is as follows:

  1. Install the application on the instance you will use to create a private image, and configure the application to automatically start at boot.
  2. Create a private image using the instance. For details, see Image Management Service User Guide.
  3. Create an AS configuration using the private image. For details, see Creating an AS Configuration. Ensure that the image in the AS configuration is the private image created in 2.
  4. Go to the page that shows the details about your AS group.
  5. Click Change Configuration to the right of Configuration Name. In the displayed dialog box, select the AS configuration created in 3 and click OK.

    After new instances are added to the AS group in the next scaling action, you can check whether your application has been installed on the instances. If you encounter any problems, contact technical support.