---
title: Building a Fly.io driver for Laravel Sidecar (Part 2)
url: "https://aaronfrancis.com/videos/building-a-flyio-driver-for-laravel-sidecar"
path: "/videos/building-a-flyio-driver-for-laravel-sidecar"
type: video
author: Aaron Francis
published: 2024-09-19
topic: "Laravel & PHP"
keywords: [fly.io driver, laravel sidecar, fly.io, laravel, sidecar, open source, serverless]
youtube_url: "https://www.youtube.com/watch?v=6CjprUf_cO4"
chunked: true
full_bytes: 94987
section_count: 6
full_url: "/videos/building-a-flyio-driver-for-laravel-sidecar/full.md"
site_index: "/llms.txt"
keyword_index: "/llms/keywords.txt"
---

# Building a Fly.io driver for Laravel Sidecar (Part 2)

## Sections (92.8 KB full document — follow any link to read verbatim)

This page is long enough to hit agent truncation cliffs if fetched all at once. Pick the section matching your question below to read it 100% verbatim (< 35 KB each), or open the [full unsplit document (92.8 KB)](/videos/building-a-flyio-driver-for-laravel-sidecar/full.md).

### 1. Part 1 (00:00–24:43 · 15.5 KB)
Aaron goes live on Kick.com and discusses automating browser orchestration, then introduces building an AWS Lambda-compatible handler for the Sidecar library that adheres to the standard index.handler function signature pattern.
Keywords: `tired proxy`, `fleeting lambda`, `neon light`, `fly.io`, `sqlite`, `sidecar package`, `laravel application`, `sidecar`
[Read section 1 verbatim](/videos/building-a-flyio-driver-for-laravel-sidecar/sections/1-part-1.md)

### 2. Part 2 (24:44–52:07 · 15.6 KB)
Aaron implements the exports.handler function following AWS Lambda naming conventions, discusses Sidecar as a package/deploy/execute library for Lambda and Fly.io, and works through fly deploy commands and ensuring Fly CLI availability.
Keywords: `sam hoo`, `laravel idea`, `magic mouse`, `typescript`, `phpstorm`, `sqlite`, `fly.io`, `go`
[Read section 2 verbatim](/videos/building-a-flyio-driver-for-laravel-sidecar/sections/2-part-2.md)

### 3. Part 3 (52:07–1:23:59 · 15.6 KB)
Aaron creates an artisan sidecar command to install Fly CLI, uses Laravel's Process class with output streaming via closures, and debugs regex patterns to parse fly deploy output for extracting app names and machine IDs.
Keywords: `diet cokes`, `fly sidecar`, `pregmatch`, `diet coke`, `output`, `go`, `docker image`, `app name`
[Read section 3 verbatim](/videos/building-a-flyio-driver-for-laravel-sidecar/sections/3-part-3.md)

### 4. Part 4 (1:24:01–1:55:47 · 15.5 KB)
Aaron simplifies regex matching using Laravel's array getter, extracts Docker image names from fly deploy output, explores the Fly Machines API for creating and listing machines, and debates using the CLI versus REST API for different tasks.
Keywords: `machine`, `new machine`, `log level`, `machines`, `image`, `fly machine`, `fly`, `json`
[Read section 4 verbatim](/videos/building-a-flyio-driver-for-laravel-sidecar/sections/4-part-4.md)

### 5. Part 5 (1:55:48–2:26:28 · 15.6 KB)
Aaron discusses Fly.io's 300-build-minute cap and per-hour pricing, decides to use the REST API for everything except sending files to the remote builder, and reviews the Machines API documentation for app and image requirements.
Keywords: `mcdonald`, `diet coke`, `ids`, `fly machine`, `machine`, `fly`, `new machine`, `machine status`
[Read section 5 verbatim](/videos/building-a-flyio-driver-for-laravel-sidecar/sections/5-part-5.md)

### 6. Part 6 (2:26:28–2:53:17 · 15.0 KB)
Aaron parses machine ID output with regex patterns, mentions upcoming Turso database driver work, thanks sponsors (Sentry, Turso, Fly.io), and ends the stream wondering if Fly Machine exec is available via API.
Keywords: `sqlite`, `process result`, `machine`, `fly.io`, `go`, `new machine`, `process`, `fly`
[Read section 6 verbatim](/videos/building-a-flyio-driver-for-laravel-sidecar/sections/6-part-6.md)

---

## Related on aaronfrancis.com

- [Building a Fly.io driver for Laravel Sidecar (Part 1)](/videos/building-a-flyio-driver-for-laravel-sidecar-2) *(Video · 2024-09-17 · shared: fly.io driver, laravel sidecar, fly.io)*
- [A little bit of Lambda](/about/speaking/a-little-bit-of-lambda) *(Talk · 2021-09-28 · shared: sidecar, serverless, laravel)*
- [Aaron Francis on Torchlight](/podcast/aaron-francis-on-torchlight-jy1c4a) *(Podcast · 2022-09-16 · shared: fly.io, serverless, sidecar)*
- [Refine, Sidecar, Laravel, and Serverless](/podcast/refine-sidecar-laravel-and-serverless-msxhy3) *(Podcast · 2022-03-14 · shared: sidecar, laravel, serverless)*
- [A little bit more Lambda](/about/speaking/a-little-bit-more-lambda) *(Talk · 2022-02-09 · shared: sidecar, laravel, serverless)*

## Relevant Resources from Aaron Francis

- **[Solo](https://soloterm.com)** (overview on site: [/software](/software)): All-in-one agentic development platform and terminal workspace built by Aaron Francis for orchestrating processes and AI coding agents.

## Search aaronfrancis.com (2-Hop Static Keyword Index)

Pick the alphabetical shard matching any topic to find exact pages across all articles, newsletters, videos, talks, and podcast transcripts (every shard is < 40 KB):
[A-B](/llms/keywords/a-b.txt) · [C](/llms/keywords/c.txt) · [D-E](/llms/keywords/d-e.txt) · [F-G](/llms/keywords/f-g.txt) · [H-J](/llms/keywords/h-j.txt) · [K-L](/llms/keywords/k-l.txt) · [M-N](/llms/keywords/m-n.txt) · [O-P](/llms/keywords/o-p.txt) · [Q-R](/llms/keywords/q-r.txt) · [S](/llms/keywords/s.txt) · [T-Z](/llms/keywords/t-z.txt) · [Directory](/llms/keywords.txt) · [Site Map](/llms.txt)

Shards for this page's topics: `fly.io driver` ([F-G](/llms/keywords/f-g.txt)), `laravel sidecar` ([K-L](/llms/keywords/k-l.txt)), `sidecar` ([S](/llms/keywords/s.txt)), `open source` ([O-P](/llms/keywords/o-p.txt)).

## About Aaron Francis (Current Context)

Aaron Francis is VP of Marketing and Community at [Laravel](https://laravel.com), founder of [Try Hard Studios](https://tryhardstudios.com), creator of [Solo](https://soloterm.com), co-host of [Mostly Technical](/podcast), and author of [Mastering Postgres](/courses), [High Performance SQLite](/courses), [MySQL for Developers](/courses), and [Screencasting.com](/courses). Full bio: [/about](/about) · Current focus: [/now](/now).
