gpt4 book ai didi

amazon-web-services - 无法使用 Cloudformation 在 AWS 中创建 Elasticsearch 实例

转载 作者:行者123 更新时间:2023-12-03 07:34:28 25 4
gpt4 key购买 nike

我尝试使用 cloudformation 在 AWS 中创建 Elasticsearch 实例,但无法创建并显示此错误,

创建 Elasticsearch 域不稳定。,

这是cloudformation模板,

  Elasticsearch:
Type: AWS::Elasticsearch::Domain
Properties:
DomainName: !Ref ElasticsearchDomainName
AccessPolicies:
Version: 2012-10-17
Statement:
- Effect: Allow
Principal:
AWS: '*'
Action:
- 'es:*'
Condition:
IpAddress:
'aws:SourceIp':
- 12.34.56.78/32
Resource: '*'
ElasticsearchVersion: !Ref ElasticsearchVersion
ElasticsearchClusterConfig:
InstanceCount: !Ref InstanceCount
InstanceType: t2.small.elasticsearch
EBSOptions:
EBSEnabled: true
VolumeSize: 25
NodeToNodeEncryptionOptions:
Enabled: true
AdvancedOptions:
rest.action.multi.allow_explicit_index: 'true'
indices.fielddata.cache.size: !Ref "AWS::NoValue"
UpdatePolicy:
EnableVersionUpgrade: true

这个问题好像已经在这里提到过here ,但它对我不起作用

AdvancedOptions:
rest.action.multi.allow_explicit_index: 'true'
indices.fielddata.cache.size: ""

甚至添加这对我来说失败了,还有什么问题,

提前致谢。

最佳答案

它使用以下模板对我有用:

Resources:
Elasticsearch:
Type: AWS::Elasticsearch::Domain
Properties:
AdvancedOptions:
indices.fielddata.cache.size: ''
rest.action.multi.allow_explicit_index: 'true'
DomainEndpointOptions:
CustomEndpoint: 'mycustomdomain.com'
CustomEndpointCertificateArn: '{{resolve:ssm:my-cert-arn:1}}'
CustomEndpointEnabled: true
EnforceHTTPS: true
DomainName: 'logs'
ElasticsearchVersion: 7.10
ElasticsearchClusterConfig:
InstanceCount: 1
InstanceType: t3.small.elasticsearch
EBSOptions:
EBSEnabled: true
VolumeSize: 25
UpdatePolicy:
EnableVersionUpgrade: true

关于amazon-web-services - 无法使用 Cloudformation 在 AWS 中创建 Elasticsearch 实例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67451004/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com