resource "aws_elasticsearch_domain" "ElasticsearchDomain" { domain_name = "sondes-v2-7-9" elasticsearch_version = "7.9" cluster_config { dedicated_master_count = 3 dedicated_master_enabled = false dedicated_master_type = "t3.small.elasticsearch" instance_count = 1 instance_type = "r5.xlarge.elasticsearch" zone_awareness_enabled = false } cognito_options { enabled = true identity_pool_id = aws_cognito_identity_pool.CognitoIdentityPool.id role_arn = aws_iam_role.IAMRole3.arn user_pool_id = aws_cognito_user_pool.CognitoUserPool.id } domain_endpoint_options { enforce_https = true tls_security_policy = "Policy-Min-TLS-1-2-2019-07" custom_endpoint = "es.v2.sondehub.org" custom_endpoint_certificate_arn = "arn:aws:acm:us-east-1:143841941773:certificate/a7da821c-bdbc-404b-aa12-bce28d86cdeb" custom_endpoint_enabled = true } access_policies = <