When deploying to Elasticbeanstalk, my deploy fails with a parsing error caused by a .config file i have in the .ebextension folder, but it seems ok to me. Anyone can tell me how to fix it? The .config file looks like this:
files:
"/opt/elasticbeanstalk/hooks/appdeploy/post/01_copy_htaccess_after_deployment.sh":
mode: "000755",
owner: root,
group: root,
content: |
yes | /bin/cp /var/app/current/.htaccess.new /var/app/current/.htaccess
And the error:
The configuration file .ebextensions/08_htaccess_create_script_post_deploy.config in application version git-bce52a5381c7ac6735249419c48b1fe116168610-1494415808045 contains invalid YAML or JSON. YAML exception: Invalid Yaml: while parsing a block mapping in "", line 3, column 10: mode: "000755", ^ expected , but found FlowEntry in "", line 3, column 24: mode: "000755", ^ , JSON exception: Invalid JSON: Unexpected character (f) at position 0.. Update the configuration file.