- Newest
- Most votes
- Most comments
The error you're encountering is because the snapshot operation in Index State Management (ISM) has specific version requirements. The snapshot operation is only supported in Amazon OpenSearch Service domains running OpenSearch or Elasticsearch 7.7 or later.
Based on your error message, it appears that your OpenSearch cluster may not meet this version requirement or the snapshot functionality might not be properly enabled for ISM in your environment.
To fix this issue, you should:
- Verify that your OpenSearch cluster version supports the snapshot operation in ISM policies.
- Ensure that the snapshot repository "main-app-logs-bucket" is properly registered in your OpenSearch domain.
- Make sure the IAM role associated with your OpenSearch domain has the necessary permissions to access the S3 bucket.
If you're using Amazon OpenSearch Service, the snapshot repository needs to be registered properly with the correct permissions. This includes:
- Creating an IAM role with the necessary S3 permissions
- Setting up a custom S3 bucket for storing snapshots
- Registering the S3 bucket in your OpenSearch Service domain
Your policy structure looks correct otherwise, with the proper retry mechanism and transitions between states. The snapshot name using the dynamic variables {{ctx.index}}-{{ctx.execution_time}} is also valid and will create unique snapshot names based on the index name and execution time.
As an alternative, you might also consider using Snapshot Management (SM) policies instead of ISM for automating snapshots if that's available in your OpenSearch version. SM policies allow you to specify a schedule for taking snapshots automatically.
Sources
Index State Management in Amazon OpenSearch Service - Amazon OpenSearch Service
Tutorial: Automating Index State Management processes - Amazon OpenSearch Service
AOSOPS02-BP01 Establish a manual snapshot repository - Amazon OpenSearch Service Lens
AOSOPS02-BP02 Automate the process of taking snapshots - Amazon OpenSearch Service Lens
answered 10 months ago
Relevant content
asked 10 months ago
asked 2 years ago
