`docker build` timeout on AWS Elastic Beanstalk

  • Service: Elastic Beanstalk
  • Platfrom: Docker running on 64bit Amazon Linux 2
  • Platfrom Version: 3.4.17

My Docker builds take around 30 minutes, and I have no way to increase the timeout of Elastic Beanstalk deployments.

  1. I've tried to add a config to .ebextensions, but it doesn't work.
// timeout.config
    - namespace: aws:elasticbeanstalk:command
      option_name: Timeout
      value: 3600
  1. and I also try to deploy from CLI, it also does not work.
eb create app-env --timeout 60

I always get the same error message from /var/log/eb-engine.log

 [ERROR] An error occurred during execution of command [app-deploy] - [Docker Specific Build Application]. Stop running the command. Error: failed to build docker image: Command /bin/sh -c docker build -t aws_beanstalk/staging-app /var/app/staging/ failed with error Command timed out after 300 seconds 

Is it possible to increase this timeout?

asked 5 months ago60 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions