Hi,
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
files:
- source: \index.html
destination: C:\inetpub\wwwroot
hooks:
BeforeInstall:
- 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