Turns off or terminates AWS resources based on queries