This topic describes how to configure user data by using the console.
Background information
When you configure user data, take note of the following items:
- You can configure user data only for VPC-type instances.
- If an instance is of a retired instance type, the instance must be I/O optimized. This limit does not apply to instance types that are not retired. For more information, see Retired instance types and Instance families.
- The size of user data cannot exceed 16 KB before it is encoded in Base64.
Note The user data must be Base64-encoded before it can be configured. If you do not use the Base64 encoding service provided by the ECS console, you must manually convert the user data to Base64-encoded data before you configure it.
- The instance must use a public image or a custom image derived from a public image.
The following table lists the operating systems that are supported.
Platform Operating system Windows Windows Server 2008 R2 and later Linux - CentOS
- Ubuntu
- SUSE Linux Enterprise
- OpenSUSE
- Debian
- Alibaba Cloud Linux