def convert_resource(self,resource):
        converted_resource = ResourceConverters.convert_resource(resource)
        if(isinstance(resource,Instance)):
            converted_resource.instance.instance_type = converted_resource.instance.instance_type.replace(".","_")


        return converted_resource
    def convert_resource(self,resource):
        """
        Convert resource to JSON compatible python object
        """
        converted_resource = ResourceConverters.convert_resource(resource)
        #ElasticSearch uses .'s as delemiters by default, so lets replace that.
        if(isinstance(resource,Instance)):
            converted_resource.instance.instance_type = converted_resource.instance.instance_type.replace(".","_")

        return converted_resource