Thank you very much for the information. I am using moodle 3.5 and couldn't make it work. I hired a freelancer after my 3 days of trying, and couldn't make it work either. I downgraded to moodle 3.0 and it worked like a charm, but I don't want to downgrade so I'll stick to 3.5 and uploading files to AWS manually as matter of fact found software that does it automatically from the PC which if something it's better.
Thanks again for your time.