【发布时间】:2017-07-09 06:13:48
【问题描述】:
我有一个带有环境的 Elastic Beanstalk 应用程序,我正在使用 Boto 3 SDK 更新环境版本。我找不到任何关于如何等待 Beanstalk 状态更改的示例。
我可以看到 CloudFormation http://boto3.readthedocs.io/en/latest/reference/services/cloudformation.html#waiters 的服务员示例
没有 Elastic Beanstalk http://boto3.readthedocs.io/en/latest/reference/services/elasticbeanstalk.html 服务员的文档。
我的更新代码看起来像这样
response = eb.update_environment(
EnvironmentName=ebEnvironment,
VersionLabel=appVersion
)
print response
# I would like to wait here for update to finish
谁能提供一些关于如何做到这一点的帮助?
【问题讨论】:
标签: python amazon-web-services amazon-elastic-beanstalk aws-sdk boto3