WaitCondition can be considered as a timed semaphore which pauses the execution of yourCloudFormation template and waits for a number of success signals before it continues a stack creation operation. There are scenarios where you need to pause the execution of your CloudFormation stack, such as resource dependencies or user experience. Some scenarios also include:
- As a part of user experience, you want to pause completion of CloudFormation template and display of the output section until all resources are properly provisioned and in working state.
- There are resource dependencies where some additional scripts and packages on your instance must be properly configured before other AWS resources can contact them. For example, for successful backend configuration, a front end application should be in running state.
- An environment in which Active Directory should be in a running state before other instances perform authentication.
- A NAT instance should be in working state before private subnet instances try to fetch packages from the outside world.
你可以考虑AWS的等待条件。基本上,WaitCondition与CloudFormation模板一起使用,以确保所需的资源正在运行。在
有关详细信息click here
以下片段摘自上述文章
相关问题 更多 >
编程相关推荐