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.
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