Authenticationedit

Elasticsearch Service supports only API key-based authentication.

To obtain an API key:

  1. Log in to the Elasticsearch Service Console.
  2. Click Elasticsearch Service to show your deployments, then Account and then API Keys. Any keys currently associated with your account are listed.
  3. Click Generate API key.
  4. Provide a name and click Generate API key.
  5. Copy the generated API key and store it in a safe place. You can also download the key as a CSV file.

The API key has no expiration, so it may be used indefinitely. The API key has the same permissions as the API key owner. You may have multiple API keys for different purposes and you can revoke them when you no longer need them.

The API key needs to be supplied in the Authorization header of a request, in the following format:

Authorization: ApiKey $EC_API_KEY

To revoke an API key:

  1. Log in to the Elasticsearch Service Console.
  2. Go to Account and then API Keys.
  3. Click the trash icon under the Revoke column for any keys that you want to delete.