There is a volume size restriction in EBS for ElasticSearch. VolumeType can be found here.

Creation / deletion takes 10 minutes for 10G EBC volume size. This is the most time-consuming step in deployment. The default setting is 35G. 

${AWS::Region}:${AWS::AccountId} will be substituted by CloudFormation automatically [1].


Step-by-step guide

The file that you need to edit is node_modules/@cumulus/deployment/app/config.yml for permanent change or your own app/config.yml. 

  1. Edit es:volumeSize: 10.
  2. See [2] for additional configuration tip.


Volume size must be between 10 and 35 for t2.small.elasticsearch instance type and elasticsearch version 5.3 (Service: AWSElasticsearch; Status Code: 409; Error Code: LimitExceededException; Request ID: 052cf8de-5252-11e9-8b96-f7c2339e0758)

es: null in config.yml will disable ElasticSearch.

References

  1. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html#w2ab1c21c24c59c11b6

  2. https://mysteriouscode.io/blog/creating-elasticsearch-domain-did-not-stabilize-cant-create-aws-elasticsearch-5-1-with-cloudformation/