packer-cn/builder/jdcloud/examples/credential-new-key.json

32 lines
677 B
JSON

{
"builders": [
{
"type": "jdcloud",
"image_id": "<your-image-id>",
"access_key": "<your-access-key>",
"secret_key": "<your-secret-key>",
"region_id": "cn-north-1",
"az": "cn-north-1c",
"instance_name": "created_by_packer",
"instance_type": "g.n2.medium",
"image_name": "packerImage",
"temporary_key_pair_name": "whatever_new_key_name",
"subnet_id": "<your-subnet>",
"communicator":"ssh",
"ssh_username": "root",
"ssh_timeout" : "60s"
}
],
"provisioners": [
{
"type": "shell",
"inline": [
"sleep 3",
"echo 123",
"pwd"
]
}
]
}