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:
Open the Elastic Beanstalk console.
From the region list, select a region in which to create the Elastic Beanstalk application.
From the region list, select the region that includes the environment that you want to work with.
On the Elastic Beanstalk console applications page, click the name of the environment with the settings that you want to edit.
In the navigation pane, click Configuration.
On the Configuration page, next to Updates and Deployments, click the gear icon ().
Under Command Timeout, change Command timeout to
900, and then click Save.
To configure a command timeout using a configuration file
Add the following to a configuration file with the extension
.configthat you place in an
.ebextensionstop-level directory of your source bundle. For more information, see Customizing the Software on EC2 Instances Running Linux or Customizing the Software on EC2 Instances Running Windows.
option_settings: - namespace: aws:elasticbeanstalk:command option_name: Timeout value: 900
To configure a command timeout using the API
Call CreateEnvironment or UpdateEnvironment with the following parameters:
32bit Amazon Linux running Tomcat 6
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