{ "variables": { "secret_id": "{{env `TENCENTCLOUD_ACCESS_KEY`}}", "secret_key": "{{env `TENCENTCLOUD_SECRET_KEY`}}" }, "builders": [{ "type": "tencentcloud-cvm", "secret_id": "{{user `secret_id`}}", "secret_key": "{{user `secret_key`}}", "region": "ap-guangzhou", "zone": "ap-guangzhou-3", "instance_type": "S3.SMALL1", "source_image_id": "img-oikl1tzv", "ssh_username" : "root", "image_name": "packerTest2", "packer_debug": true, "associate_public_ip_address": true }], "provisioners": [{ "type": "shell", "inline": [ "sleep 30", "yum install redis.x86_64 -y" ] }] }