Drop YAML config files into .ebextensions/ and Beanstalk will execute them during environment provisioning and updates.

Increase PHP Memory Limit

files:
  "/etc/php.d/memory.ini":
    content: |
      memory_limit = 256M

Force HTTPS Redirects

Add an Apache config snippet that redirects all HTTP traffic to HTTPS when running behind an Elastic Load Balancer.

Run Composer Install

Use a container_commands block to run composer install --no-dev after each deployment so your dependencies are always up to date.