Elastic Compute Service
Term | Description |
Term | Description |
Volcengine Image Builder(Builder) | The custom image generator of the platform, which is used to specify the Provisioners required by Packer and the configuration information used during the custom image creation process. |
Provisioner | The configurator, which is used to specify the software and patches to be installed in the custom image when Packer is used to create the custom image. In this topic, Shell Provisioners are used as an example. For more information about Provisioners, see Provisioners. |
Parameter | Description | Sample value |
Parameter | Description | Sample value |
packer | The Packer behaviors, such as specifying all plugins required for the current template. | - |
source | The Builder startup information. You need to specify volcengine-ecs by using the first tag, which specifies that an image is created for a platform ECS instance. For information about how to use the source parameter, see source. | - |
L region | The region where the image that you want to create resides. For more information, see Regions and availability zones. | cn-beijing |
L target_image_name | The name of the image that you want to create. | packer_test |
L source_image_id | The ID of the base image. Packer creates a custom image based on the base image.
| image-38deyjkaxxxxx |
L instance_type | The type of the temporary instance used for image creation. For more information, see Instance type overview. | ecs.g2i.large |
L system_disk_size | The size of the system volume in GiB. | 50 |
L system_disk_type | The type of the system volume. | ESSD_PL0 |
L associate_public_ip_address | Specifies whether to associate an EIP with the temporary instance. Valid values:
warning When you set this parameter to true, you can:
| true |
L public_ip_id | The ID of the existing EIP that you want to use. | eip-13frvze8oo8hs3xxxxxx |
L public_ip_band_width | The upper limit for the bandwidth of the temporary EIP.
tip This parameter takes effect only when you set the associate_public_ip_address parameter to true and leave the public_ip_id parameter empty. | 1 |
L temporary_key_pair_name | The name of the temporary key pair used to connect to the temporary instance. The system automatically creates the key pair and uses the key pair for the temporary instance. You can also specify the ssh_password parameter to connect to the temporary instance by using a password. For information about SSH connection parameters, see SSH communicator. | packer-key |
L ssh_username | The username used to connect to the temporary instance over SSH. The value of this parameter is fixed to root for Linux. For more information, see SSH communicator. | root |
build | - |