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

Last updated: 2021-07-30

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

Short description

When you create an index or write data to your OpenSearch Service 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: