Back to Blog

DeployLaraveltoAWSLambdain60SecondswithDelt

Zidan Khulul Sajid··4 min read
laravelaws-lambdatutorialdeploymentserverlessbref

Deploy Laravel to AWS Lambda in 60 Seconds

What if deploying a Laravel application to production was as simple as git push? No Dockerfile, no server configuration, no YAML files — just push your code and watch it go live.

With Delt, that's exactly how it works. This tutorial shows you how to deploy any Laravel 10, 11, or 12 application to AWS Lambda in under 60 seconds.

Prerequisites

Before you start, you need:

  • A Laravel application in a Git repository (GitHub, GitLab, or Bitbucket)
  • A Delt account (free Hobby tier works)

That's it. No AWS account, no Docker knowledge, no server administration skills required.

Step 1: Connect Your Repository

After signing in to Delt, click "New Project" from your dashboard.

Choose your git provider (GitHub, GitLab, or Bitbucket) and authorize Delt to access your repositories. Select the repository containing your Laravel application.

Dashboard → New Project → Select Provider → Authorize → Choose Repo

Step 2: Configure Your Project

Delt auto-detects your Laravel application. You only need to choose:

  1. Branch — which branch to deploy (default: main)
  2. Region — where to deploy your app:
    • Singapore (ap-southeast-1) — best for Southeast Asia
    • US East (us-east-1) — best for North America/Europe

That's the entire configuration. No Dockerfile, no serverless.yml, no vapor.yml.

Step 3: Set Environment Variables

Add your production environment variables in the Delt dashboard. Common ones include:

APP_KEY=base64:your-app-key-here
APP_ENV=production
APP_DEBUG=false
DB_CONNECTION=pgsql

All environment variables are encrypted at rest using Supabase Vault. They're injected securely at deploy time — never stored in plaintext.

Note: Delt automatically provisions a managed database for Growth+ plans. Your DB_HOST, DB_DATABASE, DB_USERNAME, and DB_PASSWORD are set automatically.

Step 4: Deploy

Click "Deploy" — or simply push to your configured branch:

git add .
git commit -m "Ready for production"
git push origin main

Delt automatically:

  1. Detects the push event via webhook
  2. Builds your application (installs Composer dependencies, compiles assets)
  3. Packages it for AWS Lambda using the Bref PHP runtime
  4. Deploys to your chosen region
  5. Provisions SSL certificate
  6. Routes traffic to your new deployment

Total time: ~60 seconds from push to live.

Step 5: Verify Your Deployment

Once deployment completes, Delt provides your application URL:

https://your-project.deltapp.tech

Your Laravel app is now running on AWS Lambda with:

  • Automatic SSL (HTTPS)
  • CDN-backed static assets
  • Scale-to-zero (no cost when idle on Hobby plan)
  • Auto-scaling under load

What Delt Handles Automatically

You don't need to configure any of these — Delt manages them for you:

Build Process

  • Composer dependency installation (composer install --no-dev)
  • Asset compilation (if package.json exists)
  • Laravel optimization (php artisan config:cache, route:cache, view:cache)
  • Bref runtime packaging

Infrastructure

  • Compute: AWS Lambda with Bref PHP 8.3/8.4 runtime
  • SSL: Automatic HTTPS via Cloudflare
  • Database: Managed PostgreSQL or MySQL (Growth+ plans)
  • Queue Workers: SQS-backed queues (Growth+ plans)
  • Scheduler: EventBridge cron for schedule:run (Growth+ plans)
  • Storage: S3-compatible object storage

Scaling

  • Scale to zero: No traffic = no cost (Hobby plan)
  • Auto-scale: Lambda handles concurrent requests automatically
  • No capacity planning: No need to choose instance sizes or replica counts

Adding Queue Workers (Growth+ Plans)

If your Laravel app dispatches jobs, Delt automatically configures SQS queues:

// In your Laravel code — works exactly as normal
dispatch(new ProcessPayment($order));

No configuration changes needed. Delt sets QUEUE_CONNECTION=sqs and provisions the queue infrastructure automatically.

Adding Scheduled Tasks (Growth+ Plans)

Laravel's task scheduler works out of the box:

// app/Console/Kernel.php — works exactly as normal
$schedule->command('inspire')->hourly();
$schedule->job(new CleanupJob)->daily();

Delt uses AWS EventBridge to trigger php artisan schedule:run at the configured interval. No cron server to manage.

Custom Domains (Growth+ Plans)

To use your own domain:

  1. Go to Project Settings → Domains
  2. Add your domain (e.g., app.yourcompany.com)
  3. Point your DNS CNAME to the provided target
  4. SSL is provisioned automatically
app.yourcompany.com → CNAME → your-project.deltapp.tech

Redeploying

Every push to your configured branch triggers an automatic redeployment. You can also trigger manual redeploys from the dashboard.

# This triggers a new deployment automatically
git push origin main

Deployments are atomic — your previous version stays live until the new one is verified and ready.

Monitoring Your Deployment

The Delt dashboard shows:

  • Deployment history — every deploy with status, duration, and commit hash
  • Build logs — real-time streaming during deployment
  • Application status — current health and region

Pricing Reminder

Plan Price What You Get
Hobby Free Auto-hibernates after 30 min, perfect for side projects
Growth $29/mo Always-on, SQS queues, managed DB, custom domains
Business $59/mo Zero cold starts, 4GB RAM, priority support

Next Steps

Your Laravel app is now running on serverless infrastructure with zero DevOps overhead. Here's what to explore next:

  • Set up a custom domain for your production app
  • Configure environment variables for your services
  • Enable queue workers for background job processing
  • Invite team members to collaborate on deployments

Deploy your Laravel app in 60 seconds — Get started free →

More Articles

laravelserverless

Serverless Laravel: Deploy Aplikasi PHP ke AWS Lambda Tanpa Konfigurasi

Tutorial deploy Laravel ke AWS Lambda tanpa konfigurasi server. Gratis untuk side project, bayar mulai Rp 349.000/bulan.

laravelhosting

Delt vs Laravel Cloud vs Vapor: Which Managed Laravel Hosting in 2026?

Compare Delt, Laravel Cloud, and Vapor side-by-side. Pricing, cold starts, regions, and features — find the best managed Laravel hosting for your project.

Host your first Laravel app in under 5 minutes

Connect your GitHub repo, push your code, and let Delt handle the rest. No config files, no infrastructure setup, no DevOps required. Free to start, no credit card needed.