Vapor: Adding Imagick As Separate Lambda Layer

Mohamed Said
Mohamed Said

Starting today, you can add Imagick support to your projects by importing an external Lambda layer. This change decreases the size of the default Vapor runtime layer and allows customers that don't use Imagick to upload larger applications without worrying about AWS Lambda application size limits.

If you wish to use Imagick in your project, add a /php/conf.d/php.ini file in your project root that contains the following configuration:


Next, include the PHP runtime layer as well as the Imagick layer in your vapor.yml configuration file:

environments: staging: layers: - vapor:php-7.4 - vapor:php-7.4:imagick

Once these configuration changes have been made, you may deploy your project.

Mohamed Said
Mohamed Said

Latest Stories

Here’s what we've been up to recently.

Request a code sample

Certified Quality. Great Prices

We use cookies to improve your experience and to help us understand how you use our site. By using this site, you accept our use of cookies. Cookie Infox