• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

YAML_FILE_ERROR Message: Wrong number of container tags, expected 1

Ranch Hand
Posts: 165
Tomcat Server Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I'm new to AWS CodeDeploy. I have EC2(Windows) instance up and running fine. My app is also on it and I can access it through public IP. I'm trying to build and deploy my code (available at CodeCommit) through CodePipeline. But everytime build fails with following error:-
https://forums.aws.amazon.com/ 2016/12/27 16:08:55 Waiting for agent
https://forums.aws.amazon.com/ 2016/12/27 16:09:10 Phase is DOWNLOAD_SOURCE
https://forums.aws.amazon.com/ 2016/12/27 16:09:10 Source is located at /tmp/src839527513/src
https://forums.aws.amazon.com/ 2016/12/27 16:09:10 YAML location is /tmp/src518781290/src/buildspec.yml
https://forums.aws.amazon.com/ 2016/12/27 16:09:10 Phase complete: DOWNLOAD_SOURCE Success: false
https://forums.aws.amazon.com/ 2016/12/27 16:09:10 Phase context status code: YAML_FILE_ERROR Message: Wrong number of container tags, expected 1
https://forums.aws.amazon.com/ 2016/12/27 16:09:10 Runtime error (Wrong number of container tags, expected 1)

I tried googling this error (Wrong number of container tags, expected 1) on Internet but not much resolution found.

My buildspec.yml:-
version: 0.0
os: windows
- source: \index.html
destination: C:\inetpub\wwwroot
- location: \before-install.bat
timeout: 900
Secondly, the YML file should be named as buildspec.yml or appspec.yml because on AWS docs, it is given as appspec.yml but CodeDeploy looks for buildspec.yml.

Thank you
a wee bit from the empire
Free, earth friendly heat - from the CodeRanch trailboss
    Bookmark Topic Watch Topic
  • New Topic