* start using `go:generate packer-sdc struct-markdown` * Update Makefile remove @go install ./cmd/struct-markdown * run go generate for struct-markdown * use //go:generate packer-sdc mapstructure-to-hcl2 * run go generate for mapstructure-to-hcl2 * remove struct-markdown and mapstructure-to-hcl2 * vendor vendors
38 lines
1.0 KiB
Plaintext
38 lines
1.0 KiB
Plaintext
<!-- Code generated from the comments of the AlicloudDiskDevices struct in builder/alicloud/ecs/image_config.go; DO NOT EDIT MANUALLY -->
|
|
|
|
- `system_disk_mapping` (AlicloudDiskDevice) - Image disk mapping for the system disk.
|
|
See the [disk device configuration](#disk-devices-configuration) section
|
|
for more information on options.
|
|
Usage example:
|
|
|
|
```json
|
|
"builders": [{
|
|
"type":"alicloud-ecs",
|
|
"system_disk_mapping": {
|
|
"disk_size": 50,
|
|
"disk_name": "mydisk"
|
|
},
|
|
...
|
|
}
|
|
```
|
|
|
|
- `image_disk_mappings` ([]AlicloudDiskDevice) - Add one or more data disks to the image.
|
|
See the [disk device configuration](#disk-devices-configuration) section
|
|
for more information on options.
|
|
Usage example:
|
|
|
|
```json
|
|
"builders": [{
|
|
"type":"alicloud-ecs",
|
|
"image_disk_mappings": [
|
|
{
|
|
"disk_snapshot_id": "someid",
|
|
"disk_device": "dev/xvdb"
|
|
}
|
|
],
|
|
...
|
|
}
|
|
```
|
|
|
|
<!-- End of code generated from the comments of the AlicloudDiskDevices struct in builder/alicloud/ecs/image_config.go; -->
|