问题描述
我正在使用AWS代码部署到Windows环境来部署应用程序.我使用apspec.yml yaml文件.部署应用程序时,出现以下错误
I am deploying an application using AWS code deploy to Windows environment. I use an apspec.yml yaml file. When I deploy the application I get following error
部署失败,因为在应用程序规范文件中输入了无效的版本值().确保您的AppSpec文件指定"0.0"作为版本,然后重试.
似乎编码或行尾有问题.互联网上的所有材料均适用于linux,但不适用于Windows.我使用Visual Studio编辑器来编辑此文件.如何解决此问题?
It seems like there is a problem with encoding or line ending. All the materials in the internet are for linux but not for windows. I use visual studio editor to edit this file. How to fix this issue?
推荐答案
在我的情况下,编码错误. appspec.yml
应该另存为 UTF-8
,而不是 UTF-8 BOM
.
In my case the encoding was wrong. appspec.yml
should be saved as UTF-8
and not UTF-8 BOM
.
BTW :可以在VS 2017中使用 File>更改编码.另存为..
,然后单击 Save -Button的向下箭头... 使用编码保存...
BTW: The encoding can be changed in VS 2017 using File > Save as..
, then the down arrow at the Save-Button ... Save with encoding...
这篇关于AWS CodeDeploy ymal文件错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!