I was still getting the error but this time I was able to access the home page, but going to the site administration page it will display thesame error.
Eventually I was able to fix it the permission with the mount script
sudo s3fs elasticbeanstalk-eu-north-1-359075045096 -o use_cache=temp -o allow_other -o umask=002 -o multireq_max=5 -o nonempty ~/apps/moodle/moodledatas
So, I can access the site now but it is terribly slow. Takes about 8.7sec to load the Index/home page and about 4.5sec for other pages.
Am I missing something in the script