Permission Denied on AWS Elastic Beanstalk

Hello! I’m sorry to hear your having troubles, could you just confirm that you have given the file the proper permissions by running the command as follows:
sudo chmod 777 /mattermost/config/config.json
as well as providing the output of the command ls -alh /mattermost/config/

Thanks, I hope I can help you get this solved!