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

35 lines
730 B
JSON

{
"builders": [
{
"type": "jdcloud",
"image_id": "<your-base-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",
"ssh_private_key_file":"/Path/to/your/.ssh/id_rsa",
"ssh_keypair_name":"packer_keys",
"image_name": "created_by_packer",
"subnet_id": "<your-subnet>",
"communicator":"ssh",
"ssh_username": "root",
"ssh_timeout" : "60s"
}
],
"provisioners": [
{
"type": "shell",
"inline": [
"sleep 3",
"echo 123",
"pwd"
]
}
]
}