I am running a AWS test and need to write the response to a txt file.
The code does not throw any error but it won\'t create a file as well.