{
  "builders": [
    {
      "type": "amazon-ebs",
      "access_key": "{{user `access_key`}}",
      "secret_key": "{{user `secret_key`}}",
      "subnet_id": "{{user `subnet_id`}}",
      "security_group_id": "{{user `security_group_id`}}",
      "region": "{{user `region`}}",
      "associate_public_ip_address": "{{user `associate_public_ip_address`}}",
      "source_ami": "ami-8ef1d6e4",
      "user_data_file": "user_data.txt",
      "instance_type": "{{user `instance_type`}}",
      "ssh_username": "centos",
      "ssh_timeout": "5m",
      "ami_name": "scylla_{{isotime | clean_ami_name}}",
      "launch_block_device_mappings": [
        {
          "device_name": "/dev/sda1",
          "volume_size": 10
        }
      ]
    }
  ],
  "provisioners": [
    {
      "type": "file",
      "source": "files/",
      "destination": "/home/centos/"
    },
    {
      "type": "file",
      "source": "../../scripts/scylla_install_pkg",
      "destination": "/home/centos/scylla_install_pkg"
    },
    {
      "type": "shell",
      "script": "scylla_deploy.sh"
    }
  ],
  "variables": {
    "access_key": "",
    "secret_key": "",
    "subnet_id": "",
    "security_group_id": "",
    "region": "",
    "associate_public_ip_address": "",
    "instance_type": ""
  }
}
