Arduino Uno Wifi Rev 2 Storing Files with microphones

Hello, I am doing a project with an arduino uno wifi rev 2 and a electret microphone. I am working towards having someone say something into the microphone, the input over a few seconds be put into a file, and the file being sent from the arduino to aws over wifi.

Right now: I am getting stuck with the file storage - is it possible to store input into a file on the arduino? Does anyone have a better option for this getting input from the microphone into a file?

Thanks!