【问题标题】:AWS Elasticsearch domain - Cloudformation templateAWS Elasticsearch 域 - Cloudformation 模板
【发布时间】:2016-12-12 06:28:15
【问题描述】:

我正在尝试使用 CF 模板中的以下内容在 AWS 中创建 Elasticsearch 2.3 域,但由于某种原因,我无法指定 Elasticsearch 的版本。目前亚马逊支持 1.5 和 2.3。我得到的错误是

“遇到不受支持的属性 ElasticsearchVersion”。

这只是意味着设置版本的参数不正确,但我在文档中的任何地方都找不到它需要的内容。不指定属性会在 1.5 版本中创建 Elasticsearch 集群。

模板sn-p:

`"ElasticsearchDomain": {
          "Type": "AWS::Elasticsearch::Domain",
          "Properties": {
            "DomainName": { "Ref" : "EsName" },
            "ElasticsearchVersion": "2.3",
            "ElasticsearchClusterConfig": {
              "DedicatedMasterEnabled": { "Ref" : "EsDedicatedMaster" },
              "InstanceCount": { "Ref" : "EsInstanceCount" },
              "ZoneAwarenessEnabled": "true",
              "InstanceType": { "Ref" : "EsInstanceType" },
              "DedicatedMasterType": { "Ref" : "EsMasterInstanceType" },
              "DedicatedMasterCount": "3"
            },
            "EBSOptions": {
              "EBSEnabled": true,
              "Iops": 0,
              "VolumeSize": { "Ref" : "EsEbsVolumeSize" },
              "VolumeType": { "Ref" : "EsEbsVolumeType" }
            },
            "SnapshotOptions": {
              "AutomatedSnapshotStartHour": "0"
            },
            "AccessPolicies": {
              "Version": "2012-10-17",
              "Statement": [{
                "Effect": "Allow",
                "Principal": {
                  "AWS": "*"
                },
                "Action": "es:*",
                "Resource": "*"
              }]
            },
            "AdvancedOptions": {
              "rest.action.multi.allow_explicit_index": "true"
            }
          }
        }`

希望有人已经解决了这个问题。

【问题讨论】:

    标签: amazon-web-services elasticsearch amazon-cloudformation


    【解决方案1】:

    好的,我有同样的问题联系 AWS 支持,他们告诉我 Elastic Search 2.3 是非常新的 Cloud Formation 还不支持版本属性。因此,如果您使用 CFN,则必须使用 1.5 版。

    【讨论】:

    • 谢谢这个解释。
    • 我不知道何时进行了更改,但在通过 CloudFormation 配置 ElasticSearch 时,2.3 现在是 ElasticsearchVersion 的有效值。
    • 为我工作,即使我在文档中找不到 "ElasticsearchVersion"。它是"Properties" 的直接子代AWS::Elasticsearch::Domain
    猜你喜欢
    • 1970-01-01
    • 2021-05-24
    • 2021-12-28
    • 1970-01-01
    • 2021-07-20
    • 2018-05-04
    • 1970-01-01
    • 2021-11-20
    • 2018-10-12
    相关资源
    最近更新 更多