{
  "builders": [{
    "type": "amazon-ebs",
    "region": "us-east-1",
    "source_ami_filter": {
      "filters": {
        "virtualization-type": "hvm",
        "name": "Jenkins ssh slave v*",
        "root-device-type": "ebs"
      },
      "owners": ["483193324480"],
      "most_recent": true
    },
    "instance_type": "t3.medium",
    "ssh_username": "ec2-user",
    "ami_name": "Jenkins ssh slave v{{timestamp}}",
    "vpc_id": "vpc-0ca801feb79f22108",
    "subnet_id": "subnet-0a058fdbd4cf00890",
    "security_group_id": "sg-076308b4ea635bb92",
    "associate_public_ip_address": true,
    "tags": {
      "platform": "Delphi",
      "environment": "Common",
      "project": "Infrastructure",
      "service": "EC2",
      "plat_env_project_service": "DLP_CMN_INFRA_EC2"
    },
    "run_tags": {
      "platform": "Delphi",
      "environment": "Common",
      "project": "Infrastructure",
      "service": "EC2",
      "plat_env_project_service": "DLP_CMN_INFRA_EC2"
    },
    "run_volume_tags": {
      "platform": "Delphi",
      "environment": "Common",
      "project": "Infrastructure",
      "service": "EC2",
      "plat_env_project_service": "DLP_CMN_INFRA_EC2"
    },
    "snapshot_tags": {
      "platform": "Delphi",
      "environment": "Common",
      "project": "Infrastructure",
      "service": "EC2",
      "plat_env_project_service": "DLP_CMN_INFRA_EC2",
      "Name": "Common Agent"
    }
  }],
  "provisioners": [
    {
      "type": "shell",
      "script": "./install_updates.sh"
    },
    {
      "type": "shell",
      "script": "./configure_aws_creds.sh"
    },
    {
      "type": "shell",
      "script": "./install_jq_utility.sh"
    },
    {
      "type": "shell",
      "script": "./install_terraform.sh"
    },
    {
      "type": "shell",
      "script": "./upgrade_aws_cli.sh"
    },
    {
      "type": "shell",
      "script": "./enable_docker_autostart.sh"
    },
    {
      "type": "shell",
      "script": "./install_octopus_cli.sh"
    },
    {
      "type": "shell",
      "script": "./install_docker_compose.sh"
    },
    {
      "type": "shell",
      "script": "./increase_amount_of_inotify_watchers.sh"
    },
    {
      "type": "shell",
      "script": "./install_mailcap.sh"
    },
    {
      "type": "shell",
      "script": "./install_bumpversion.sh"
    }
  ]
}
