packer-cn/examples/jdcloud/credential-password.json

33 lines
716 B
JSON
Raw Normal View History

{
"builders": [
{
"type": "jdcloud",
"image_id": "img-h8ly274zg9",
"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",
"ssh_password":"/Users/mac/.ssh/id_rsa",
"ssh_keypair_name":"created_by_xiaohan",
"image_name": "packerImage",
"subnet_id": "subnet-jo6e38sdli",
"communicator":"ssh",
"ssh_username": "root",
"ssh_timeout" : "60s"
}
],
"provisioners": [
{
"type": "shell",
"inline": [
"sleep 3",
"echo 123",
"pwd"
]
}
]
}