{
  "builders": [
    {
      "type": "amazon-ebs",
      "access_key": "{{aws_access_key_id}}",
      "secret_key": "{{aws_secret_access_key}}",
      "region": "us-east-1",
      "source_ami": "ami-20631a36",
      "instance_type": "t2.micro",
      "ssh_username": "ubuntu",
      "ami_name": "pcf bootstrap {{ami_version}}",
      "launch_block_device_mappings": [
        {
          "device_name": "/dev/sda1",
          "volume_size": 40
        }
      ]
    }
  ],
  "provisioners": [
    {
      "type": "shell",
      "inline": [
        "sleep 30",
        "mkdir /home/ubuntu/tiles",
        "sudo apt-get update -y",
        "sudo apt-get install -y python3-dev python3-pip mysql-client-core-5.7",
        "sudo pip3 install --upgrade pip awscli"
      ]
    },
    {
      "destination": "/home/ubuntu/tiles/",
      "source": "{{ert_file}}",
      "type": "file"
    },
    {
      "destination": "/home/ubuntu/tiles/",
      "source": "{{broker_file}}",
      "type": "file"
    },
     {
      "destination": "/home/ubuntu/tiles/",
      "source": "{{stemcell_file}}",
      "type": "file"
    }
  ]
}


{
  "builders": [
    {
      "type": "amazon-ebs",
      "access_key": "{{aws_access_key_id}}",
      "secret_key": "{{aws_secret_access_key}}",
      "region": "us-east-2",
      "source_ami": "ami-a5b196c0",
      "instance_type": "t2.micro",
      "ssh_username": "ubuntu",
      "ami_name": "pcf bootstrap {{ami_version}}",
      "launch_block_device_mappings": [
        {
          "device_name": "/dev/sda1",
          "volume_size": 40
        }
      ]
    }
  ],
  "provisioners": [
    {
      "type": "shell",
      "inline": [
        "sleep 30",
        "mkdir /home/ubuntu/tiles",
        "sudo apt-get update -y",
        "sudo apt-get install -y python3-dev python3-pip mysql-client-core-5.7",
        "sudo pip3 install --upgrade pip awscli"
      ]
    },
    {
      "destination": "/home/ubuntu/tiles/",
      "source": "{{ert_file}}",
      "type": "file"
    },
    {
      "destination": "/home/ubuntu/tiles/",
      "source": "{{broker_file}}",
      "type": "file"
    },
     {
      "destination": "/home/ubuntu/tiles/",
      "source": "{{stemcell_file}}",
      "type": "file"
    }
  ]
}


Change region and ami for bootstrap vm.
Change region and ami for bootstrap vm.
