Working with Laravel it's only natural to need artisan for a few tasks. Let it be custom commands tailored to your application or default commands like php artisan migrate, knowing how to use cli-based scripts on Lambda is an important step to gain confidence to go serverless with a project.

Furthermore, not everybody on the development team have access to our AWS Production Account.

Running Artisan from a Lambda Function is a great mechanism to maintain the security rules as well as allowing developers to keep their autonomy for releases.

My first (and most obvious) attempt at running artisan commands started by defining a handler such as artisan migrate.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners