amazon-web-services - AWS Elasticsearch 域 - Cloudformation 模板

标签 amazon-web-services elasticsearch aws-cloudformation

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

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

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

模板片段:

`"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"
            }
          }
        }`

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

最佳答案

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

关于amazon-web-services - AWS Elasticsearch 域 - Cloudformation 模板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38796017/

相关文章:

json - ElasticSearch-将查询匹配与通配符组合

elasticsearch - syslog-ng添加用于 Elasticsearch 的插件

c# - 使用Createmany动态设置类型

amazon-web-services - 如何存储从cloudformation堆栈输入的参数?

amazon-web-services - CloudFormation 没有执行我的命令?

mysql - 在没有 NAT 的情况下从不同子网上的 EC2 连接到 RDS

amazon-web-services - aws 胶水 python shell 作业与 spark 作业的最佳用例是什么?

amazon-web-services - 使用名称取决于 CFN 参数的 SSM 参数

amazon-web-services - Route53,AWS-CLI : Add Alias A name with aws-cli

amazon-web-services - DynamoDB UpdateItem 用数字计算?