AWS Code Deploy EC2/On-premises yml file error on from s3 to windows server

女生的网名这么多〃 提交于 2020-06-28 08:42:16

问题


i am struggling since 2 days, but i can not find proper answer, and also in google there are no refrence that i can solve error.

  1. what i have did i have created deployment in aws code deploy, have attach role with awscodeeployrole,
  2. created zip from application
  3. created Appspec.yml file as below
   version: 0.0
   os: windows
   files:
     - source: AdvertApiPublish.zip
       destination: C:\inetpub\wwwroot

i uploaded zip file including appspec file, and do deployment i got following error

The deployment failed because an invalid version value (0.0) was entered in the application specification file. Make sure your AppSpec file specifies "0.0" as the version, and then try again.

on google i found this stackoverflow question AWS CodeDeploy ymal file error

i tried to change encoding also but no luck. i dont know what i am missing


回答1:


i could solve before install event issue, using below encoding in vs2019 community edition

but then after in install event i got following error No such file or directory @ rb_sysopen ... AdvertApiPublish.zip

that i knew it was sily error there, i dont have to set zip file in yaml file , i have to give published application directory inside it. so i changed yaml file as below

version: 0.0
os: windows
files:
  - source: **PublishAdvertApi**
    destination: C:\inetpub\wwwroot

AND MY DEPLOYMENT WAS SUCCEEDED!! HURREEEE



来源:https://stackoverflow.com/questions/62613077/aws-code-deploy-ec2-on-premises-yml-file-error-on-from-s3-to-windows-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!