konklone / oversight.garden

Bringing together the oversight community's work.
https://oversight.garden
Creative Commons Zero v1.0 Universal
26 stars 9 forks source link

AWS Elasticsearch service doesn't support closing indices #129

Closed divergentdave closed 8 years ago

divergentdave commented 8 years ago

I was poking around in the AWS EC2 user data, and came across a note that the initialization task "currently fails when trying to close index since AWS ES doesn't support that." It appears the recommended solution is to blow away your index with a DELETE. I think what we need to do is create the reports mapping and configure it with config/mappings/reports.json at the same time if we are deleting the index, or do nothing at all if force=true wasn't passed.

References: http://stackoverflow.com/questions/33113365/cant-close-elasticsearch-index-on-aws http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-managedomains.html

Blocks #66, cc @spulec