I am using snapshot api to create and restore my index to s3. Everything is fine while creating snapshot to s3.
But the problem arises when I restore the snapshot with two methods.
Firstly I tried to restore the snapshot directly to a different cluster. The index was RED and hence cluster was RED.
Secondly, I ran the mapping for the index and then closed the index, with the same settings as of the index i created snapshot with. Now, I restored the index. During this process, the index went RED and OPEN, due to which the cluster was RED.
How can I avoid cluster to be RED?
Updates: This seems to be issue only when the snapshot is created with server_side_encryption enabled.