github.phpd.cn/hashicorp/packer@v1.3.2/test/fixtures/provisioner-file/file_sftp.json (about)

     1  {
     2      "builders": [{
     3          "type": "amazon-ebs",
     4          "ami_name": "packer-test {{timestamp}}",
     5          "instance_type": "t2.micro",
     6          "region": "us-east-1",
     7          "ssh_username": "ec2-user",
     8  	"ssh_file_transfer_method": "sftp",
     9          "source_ami": "ami-8da458e6",
    10          "tags": {
    11              "packer-test": "true"
    12          }
    13      }],
    14  
    15      "provisioners": [{
    16          "type": "file",
    17          "source": "file.txt",
    18          "destination": "/tmp/file.txt"
    19      }, {
    20          "type": "shell",
    21          "inline": ["cat /tmp/file.txt"]
    22      }]
    23  }