Updated on 2025-10-30 GMT+08:00

User Data Injection

Description

  • User data injection

    You can inject user data to customize your ECS. The user data you customized will be injected into an ECS upon its first startup. You can either upload a user data script or write the user data into the specified text box when you create an ECS.

  • How to use

    Before you inject user data, learn about Constraints.

    1. Write a user data script in a format defined by Cloud-init/Cloudbase-init.
    2. When you create an ECS, copy the script content to the User Data text box, or upload the script to the cloud platform.
      • As text: Copy user data from the script to the text box.
      • As file: Upload the user data script to the cloud platform.
    3. The new ECS will automatically run Cloud-Init or Cloudbase-Init to read the user data upon startup.

    For details, see Injecting User Data.