Product SiteDocumentation Site

10.5. Using Timeouts to Ensure AWS API Command Completion

The Amazon EC2 command-line tools have a default connection timeout. When used with CloudStack, a longer timeout might be needed for some commands. If you find that commands are not completing due to timeouts, you can gain more time for commands to finish by overriding the default timeouts on individual commands. You can add the following optional command-line parameters to any CloudStack-supported EC2 command:
--connection-timeout TIMEOUT
Specifies a connection timeout (in seconds). Example:
--connection-timeout 30
--request-timeout TIMEOUT
Specifies a request timeout (in seconds). Example:
--request-timeout 45
ec2-run-instances 2 –z us-test1 –n 1-3 --connection-timeout 120 --request-timeout 120