我正在尝试将应用程序版本部署到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"
尝试不使用开头和结尾引号,如下所示:
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
在线使用此工具可以快速确定是否有问题 YAML Parser 。