How do I resolve the 403 "index_create_block_exception" error in Amazon Elasticsearch Service?

Last updated: 2020-12-16

When I try to create an index or write data to my Amazon Elasticsearch Service (Amazon ES) domain, I get a ClusterBlockException. How do I resolve this?

Short description

When you create an index or write data to your Amazon ES domain, you might receive the following error message:

{
  "error": {
    "root_cause": [
      {
        "type": "index_create_block_exception",
        "reason": "blocked by: [FORBIDDEN/10/cluster create-index blocked (api)];"
      }
    ],
    "type": "index_create_block_exception",
    "reason": "blocked by: [FORBIDDEN/10/cluster create-index blocked (api)];"
  },
  "status": 403

Resolution

Here are common causes of cluster block exceptions: