Menu
AWS Elastic Beanstalk
Developer Guide (API Version 2010-12-01)

Launch and Update Environment Operations Succeeded but with Command Timeouts

"Create environment operation is complete, but with command timeouts. Try increasing the timeout period."or "Update environment operation is complete, but with command timeouts. Try increasing the timeout period.'

This event message appears when an environment is successfully created or updated, but some commands were not completed on the Amazon EC2 instances in the environment within the expected time period. In this situation, check the event stream or logs for details about which on-instance commands were not completed. For more information about viewing events, see Viewing an Elastic Beanstalk Environment's Event Stream. For more information about logging, see Instance Logs. Then try increasing the command timeout period by doing one of the following.

To configure a command timeout using the AWS Management Console:

  1. Open the Elastic Beanstalk console.

  2. From the region list, select a region in which to create the Elastic Beanstalk application.

  3. From the region list, select the region that includes the environment that you want to work with.

  4. On the Elastic Beanstalk console applications page, click the name of the environment with the settings that you want to edit.

  5. In the navigation pane, click Configuration.

  6. On the Configuration page, next to Updates and Deployments, click the gear icon ( ).

  7. Under Command Timeout, change Command timeout to 900, and then click Save.

To configure a command timeout using a configuration file

To configure a command timeout using the API

  • Call CreateEnvironment or UpdateEnvironment with the following parameters:

    • EnvironmentName = SampleAppEnv2

    • VersionLabel = Version2

    • SolutionStackName = 32bit Amazon Linux running Tomcat 6

    • ApplicationName = SampleApp

    • OptionSettings.member.1.Namespace = aws:elasticbeanstalk:command

    • OptionSettings.member.1.OptionName = Timeout

    • OptionSettings.member.1.Value = 900

Example

Copy
https://elasticbeanstalk.us-west-2.amazon.com/?ApplicationName=SampleApp &VersionLabel=Version2 &EnvironmentName=SampleAppEnv2 &SolutionStackName=32bit%20Amazon%20Linux%20running%20Tomcat%206 &Operation=CreateEnvironment &OptionSettings.member.1.Namespace=aws%3Aelasticbeanstalk%3Acommand &OptionSettings.member.1.OptionName=Timeout &OptionSettings.member.1.Value=900 &AuthParams