Apache 无效的YAML ebextensions

Apache 无效的YAML ebextensions,apache,yaml,amazon-elastic-beanstalk,ebextensions,Apache,Yaml,Amazon Elastic Beanstalk,Ebextensions,我正在尝试将应用程序版本部署到elastic beanstalk,但我的配置文件格式不正确 有很多转义引号,所以我不认为这是正确的,但我不知道如何解决它 这是引起问题的线路 command: "sudo bash -c 'echo \"<img src=\'http://www.foo.com/img/custom_500.png\' alt=\'500\' style=\'left:50%;top:50%;position:fixed;margin-top:-235px;marg

我正在尝试将应用程序版本部署到elastic beanstalk,但我的配置文件格式不正确

有很多转义引号,所以我不认为这是正确的,但我不知道如何解决它

这是引起问题的线路

    command: "sudo bash -c 'echo \"<img src=\'http://www.foo.com/img/custom_500.png\' alt=\'500\' style=\'left:50%;top:50%;position:fixed;margin-top:-235px;margin-left:-200px\'/>\"' > custom_50x.html"
命令:“sudobash-c'echo\”>custom\u 50x.html”

尝试不使用开头和结尾引号,如下所示:

command: sudo bash -c 'echo \"<img src=\'http://www.foo.com/img/custom_500.png\' alt=\'500\' style=\'left:50%;top:50%;position:fixed;margin-top:-235px;margin-left:-200px\'/>\"' > custom_50x.html
command:sudobash-c'echo\“\”>custom\u 50x.html

在线使用此选项是快速确定是否有问题的一个有用工具。

有关错误消息的更多内容将非常有用。