AWS Elasticsearch 域 - Cloudformation 模板
AWS Elasticsearch domain - Cloudformation template
我正在尝试在 CF 模板中使用以下内容在 AWS 中创建 Elasticsearch 2.3 域,但由于某种原因我无法指定 Elasticsearch 的版本。目前亚马逊同时支持 1.5 和 2.3。我得到的错误是
"Encountered unsupported property 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 版。
我正在尝试在 CF 模板中使用以下内容在 AWS 中创建 Elasticsearch 2.3 域,但由于某种原因我无法指定 Elasticsearch 的版本。目前亚马逊同时支持 1.5 和 2.3。我得到的错误是
"Encountered unsupported property 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 版。