使用AWS Cloudformation创建Elasticsearch服务:“创建Elasticsearch Domain不稳定"; [英] Creating Elasticsearch service with AWS Cloudformation: "Creating Elasticsearch Domain did not stabilize"
问题描述
谢谢!
不确定为什么会这样,而且非常烦人,因为要花整整一个小时才能失败.
Not sure why this is happening and it's extremely annoying since it takes a whole hour to fail.
有什么想法为什么我的Cloudformation Elasticsearch服务设置不稳定?
Any ideas why my Cloudformation Elasticsearch service set up will not stabilize?
它返回此错误: 创建Elasticsearch Domain不稳定
"elk": {
"Type": "AWS::Elasticsearch::Domain",
"Properties": {
"AccessPolicies": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": {
"Fn::GetAtt": [
"esuseraccess",
"Arn"
]
}
},
"Action": "es:*",
"Resource": {
"Fn::Sub": "arn:aws:es:${AWS::Region}:${AWS::AccountId}:domain/elk"
}
},
{
"Sid": "",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "es:*",
"Resource": {
"Fn::Sub": "arn:aws:es:${AWS::Region}:${AWS::AccountId}:domain/elk"
},
"Condition": {
"IpAddress": {
"aws:SourceIp": [
"XX.XX.XX.XX",
"XX.XX.XX.XX"
]
}
}
}
]
},
"DomainName": "elk",
"EBSOptions": {
"EBSEnabled": "True",
"VolumeSize": 10,
"VolumeType": "gp2"
},
"ElasticsearchClusterConfig": {
"InstanceCount": 1,
"InstanceType": "t2.small.elasticsearch"
},
"ElasticsearchVersion": "5.1",
"SnapshotOptions": {
"AutomatedSnapshotStartHour": 0
}
},
"Metadata": {
"AWS::CloudFormation::Designer": {
"id": "XXXXXXXXXXXX"
}
}
}
推荐答案
尝试至少使用默认值设置AdvancedOptions
定义.像这样:
Try setting the AdvancedOptions
definition, at least with the default values. Something like:
"Elasticsearch": {
"Properties": {
...
"AdvancedOptions": {
"indices.fielddata.cache.size": "",
"rest.action.multi.allow_explicit_index": "true"
},
}
这看起来像是个错误,因为您似乎无法在不设置AdvancedOptions
的情况下创建域. 此处.
It looks like a bug since it looks like you can't create a domain without setting AdvancedOptions
. There is a thread for this known issue here.
This is the original post that helped me solve this issue.
这篇关于使用AWS Cloudformation创建Elasticsearch服务:“创建Elasticsearch Domain不稳定";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!