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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners