re-adds query_aws_instance and completes terminate_instance call