通过 CloudFormation 部署的 AWS Elasticsearch 域。如何在不更换的情况下更新ES版本?
AWS Elasticsearch domain deployed through CloudFormation. How to update ES version without replacement?
我们有一个通过 CloudFormation 运行 ES 6.3 版创建的 AWS Elasticsearch 域。当我们更新模板中的 ElasticsearchVersion
属性 时,它会将 Elasticsearch 域替换为一个新的 运行 新版本,而不是更新现有的
如果不进行就地升级,如何升级使用 CF 部署的 Elasticsearch 域?我现在几乎在想我需要通过 boto3 创建和管理我的 ES 域。
如有任何见解或想法,我们将不胜感激。
收到来自 AWS Support 的关于通过 CloudFormation 进行 ES 就地升级的回信。
tl;dr 当前不支持,但此功能的功能请求已经激活。
You are correct in saying that ES in-place upgrade is not supported by CFN at this moment. Thus upgrading ES from 6.3 to 6.4 can be done via CLI or AWS Console will keep the existing domain, but with CloudFormation, it will launch a new domain and discard the existing one.
I see that there is already an active feature request for this. I will go ahead and pass your sentiment regards to our internal team about this matter as well.
Unfortunately, AWS Support does not have visibility to service enhancement implementation roadmap, so I would not be able to provide you with an exact time frame.
现在可以(从 2019 年 11 月 25 日起)通过 EnableVersionUpgrade: True
设置更新策略。
例如:
ElasticSearchDomain:
Type: AWS::Elasticsearch::Domain
Properties: ...
UpdatePolicy:
EnableVersionUpgrade: true
我们有一个通过 CloudFormation 运行 ES 6.3 版创建的 AWS Elasticsearch 域。当我们更新模板中的 ElasticsearchVersion
属性 时,它会将 Elasticsearch 域替换为一个新的 运行 新版本,而不是更新现有的
如果不进行就地升级,如何升级使用 CF 部署的 Elasticsearch 域?我现在几乎在想我需要通过 boto3 创建和管理我的 ES 域。
如有任何见解或想法,我们将不胜感激。
收到来自 AWS Support 的关于通过 CloudFormation 进行 ES 就地升级的回信。
tl;dr 当前不支持,但此功能的功能请求已经激活。
You are correct in saying that ES in-place upgrade is not supported by CFN at this moment. Thus upgrading ES from 6.3 to 6.4 can be done via CLI or AWS Console will keep the existing domain, but with CloudFormation, it will launch a new domain and discard the existing one.
I see that there is already an active feature request for this. I will go ahead and pass your sentiment regards to our internal team about this matter as well. Unfortunately, AWS Support does not have visibility to service enhancement implementation roadmap, so I would not be able to provide you with an exact time frame.
现在可以(从 2019 年 11 月 25 日起)通过 EnableVersionUpgrade: True
设置更新策略。
例如:
ElasticSearchDomain:
Type: AWS::Elasticsearch::Domain
Properties: ...
UpdatePolicy:
EnableVersionUpgrade: true