Skip to main content

Laravel Vapor

Laravel Vapor is an auto-scaling, serverless deployment platform for Laravel applications, powered by AWS Lambda. It abstracts the complexities of managing AWS infrastructure, allowing developers to deploy and manage their applications with a user-friendly UI and command-line interface (CLI). 

Key Features
  • Serverless Architecture: Your application runs on AWS Lambda, meaning you don't need to manage servers, and the infrastructure automatically scales based on demand.
  • Zero-Downtime Deployments: Vapor enables atomic, zero-downtime deployments and rollbacks, ensuring high availability.
  • Resource Management: It provides tools for managing various AWS resources directly, including RDS and Aurora Serverless databases, Redis cache clusters, SQS queues, and S3 storage.
  • Asset Management: During deployment, assets are automatically uploaded to an S3 bucket and served via Amazon CloudFront CDN for improved performance.
  • Custom Domains and DNS: Vapor simplifies the process of configuring custom domains, SSL certificates, and DNS records through its dashboard.
  • Monitoring and Metrics: The platform offers a built-in dashboard (Vapor UI) to view application logs, failed queue jobs, and performance metrics.
  • CI/CD Friendly: The Vapor CLI is installed locally within your project, making it easy to integrate with continuous integration platforms like GitHub Actions or Chipper CI. 

How it Works
  1. Installation: You install the Vapor CLI client as a Composer dependency in your Laravel project.
  2. Configuration: You link your AWS account to your Vapor team and define your project's infrastructure (like databases and cache) in a vapor.yml file.
  3. Deployment: When you run vapor deploy production (or another environment), the CLI packages your application, uploads it to S3, and configures AWS Lambda and other services (e.g., API Gateway or Load Balancers) to run your application. 
For more information, you can visit the official Laravel Vapor documentation or the main website at vapor.laravel.com.