【发布时间】:2017-09-01 02:44:08
【问题描述】:
我正在编写需要删除网站的云端分发的拆卸脚本。看来您必须关注
- 禁用分发
- 等待分发被禁用(部署)
- 删除分布
但是看起来服务员在第 2 步失败了,并且 delete_distribution 失败,除非分发被禁用。
result = client.update_distribution(
DistributionConfig=disabledConf,
Id=dist_id,
IfMatch=matchid)
waiter = client.get_waiter('distribution_deployed')
print("Waiting for disabling the distribution")
waiter.wait(Id=dist_id) # Throws here
client.delete_distribution(Id=dist_id, IfMatch=result['ETag'])
有人知道如何让它与 boto3 一起工作吗?
【问题讨论】:
标签: python amazon-cloudfront boto3