mirror of
https://github.com/outbackdingo/ack-image-builder.git
synced 2026-01-27 10:18:13 +00:00
33 lines
872 B
JSON
33 lines
872 B
JSON
{
|
|
"variables": {
|
|
"region": "cn-hangzhou",
|
|
"image_name": "ack-optimized_image{{timestamp}}",
|
|
"source_image": "aliyun_2_1903_x64_20G_alibase_20210120.vhd",
|
|
"instance_type": "ecs.g6.large",
|
|
"access_key": "{{env `ALICLOUD_ACCESS_KEY`}}",
|
|
"secret_key": "{{env `ALICLOUD_SECRET_KEY`}}"
|
|
},
|
|
"builders": [
|
|
{
|
|
"type": "alicloud-ecs",
|
|
"access_key": "{{user `access_key`}}",
|
|
"secret_key": "{{user `secret_key`}}",
|
|
"region": "{{user `region`}}",
|
|
"image_name": "{{user `image_name`}}",
|
|
"source_image": "{{user `source_image`}}",
|
|
"ssh_username": "root",
|
|
"instance_type": "{{user `instance_type`}}",
|
|
"skip_image_validation": "true",
|
|
"io_optimized": "true"
|
|
}
|
|
],
|
|
"provisioners": [
|
|
{
|
|
"type": "shell",
|
|
"scripts": [
|
|
"scripts/ack-optimized-os.sh"
|
|
]
|
|
}
|
|
]
|
|
}
|