How to increase the timeout of Elastic Beanstalk deployments?

You can add AWS Elastic Beanstalk configuration files (.ebextensions) to your web application's source code to configure your environment and customize the AWS resources that it contains.

The option_settings section of a configuration file defines values for configuration options. Configuration options let you configure your Elastic Beanstalk environment, the AWS resources in it, and the software that runs your application.

Add configuration files to your source code in a folder named .ebextensions and deploy it in your application source bundle.

Example:

option_settings:
    - namespace: aws:elasticbeanstalk:command
      option_name: Timeout
      value: 1000

*"value" represents the length of time before timeout in seconds.

References: Official AWS Elastic Beanstalk Environment Configuration and General Options for All Environments, this stackoverflow answer and this AWS Developers Forum post.