How to wait for an application¶
The amc wait
command instructs AMS to wait for an application to reach a specific condition. If the condition is not satisfied within the specified time (five minutes by default), a timeout error will be returned by AMS.
The supported conditions for an application are as follows:
Name |
Value |
---|---|
|
Supported instance type. See Instance type for a list of available instance types. This attribute is deprecated since 1.20 and will be removed in future releases. |
|
Comma-separated list of addons. |
|
Application tag name (deprecated, use |
|
Comma-separated list of tags. |
|
“true” or “false” indicating whether the application is published. |
|
“true” or “false” indicating whether the application is changeable. |
|
Application status, possible values: |
One example of using the amc wait
command is to wait for the application bootstrap process to be done, since the application bootstrap is performed asynchronously by the AMS service and takes some time to process. The application cannot be used until the bootstrap is complete and the status is marked as ready
.
amc wait -c status=ready bcmap7u5nof07arqa2ag