I am trying to deploy some Django code to an AWS Elastic Beanstalk Environment. I am getting a deployment error:
The configuration file __MACOSX/OriginalNewConfig-deploy/.ebextensions/._python.config in application version OriginalNewConfig2-deploy contains invalid YAML or JSON. YAML exception: unacceptable character '' (0x0) special characters are not allowed in "<reader>", position 0, JSON exception: Unexpected character () at position 0.. Update the configuration file.
The python.config file (in the .ebextensions folder) looks like this:
---
container_commands:
01_wsgipass:
command: "echo \"WSGIPassAuthorization On\" >> ../wsgi.conf"
packages:
yum:
libjpeg-turbo-devel: []
The deployment code I am using has apparently been successfully deployed before (by the original developer) so I do not understand why an error is being reported.
I am deploying by using the 'Upload and Deploy' button in the AWS EB dashboard.