envs

Elasticsearch — connecting an application

elastic/cloud · version 1

envs add elastic/cloud

This declares the keys below in your catalog and sets none of them. A template is a schema for keys; it never carries a value.

Key Needed Kind Notes
ELASTIC_CLOUD_ID required secret Identifies the deployment and saves the client a URL. Elastic states no sensitivity, and unlike Meilisearch and Typesense it publishes no key built for a browser, so nothing here is treated as public. The name is convention.. where to get it
ELASTIC_API_KEY required secret Created in your deployment's Kibana and carried as base64 of an id and a key joined by a colon. Elastic states no sensitivity; its permissions are whatever role you gave it, so it is treated as secret. The name is convention.. where to get it

The JSON the CLI reads