AWS Elasticsearch service get NodeId (Instance ID)

Viewed 597

I provision AWS Elasticsearch service with Terraform and want to setup CloudWatch alarms for some metrics like CPU Usage etc. also by using Terraform.

In order to do it I have to put NodeId to aws_cloudwatch_metric_alarm resource: enter image description here

The problem is that aws_elasticsearch_domain resource doesn't have suitable Attributes Reference

And I also haven't found anything suitable in aws es cli https://docs.aws.amazon.com/cli/latest/reference/es/index.html

Any ideas how to get this NodeId to use in Terraform?

1 Answers
Related