0

Im trying to create an Elasticsearch instance in AWS using cloudformation, but cannot create and shows this error,

Creating Elasticsearch Domain did not stabilize.,

Here is the cloudformation template,

  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
    

It seems this issue has been already mentioned here here , but it didn't worked for me

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

even adding that failing for me, What else be the issue,

Thanks in advance.

3
  • What issue? What error are you getting exactly? Commented May 8, 2021 at 23:18
  • "Creating Elasticsearch Domain did not stabilize", is showing in cloudformation, and its taking hours to fail Commented May 9, 2021 at 4:12
  • It is working when I've updated the instance type to t3.small.elasticsearch Commented Jul 7, 2021 at 8:42

1 Answer 1

1

It worked for me with the following template:

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
Sign up to request clarification or add additional context in comments.

1 Comment

Yea, it works with t3.small.elasticsearch but When I use t2.small.elasticsearch It is not working.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.