AWS CodePipeline error "YAML_FILE_ERROR Message: Wrong number of container tags, expected 1"

0 votes

I'm trying to execute my AWS CodePipeline and I end with the following error:

YAML_FILE_ERROR Message: Wrong number of container tags, expected 1

Why am I getting this error? And how do I get rid of it?

Jun 27, 2019 in AWS by Kisna

1 answer to this question.

0 votes

Show your spec.yaml file. Most probably the version you've mentioned is wrong. Should be something like this:

version: 0.2
os: linux
  - source: /index.html
    destination: /var/www/html/
    - location: scripts/install_dependencies
      timeout: 300
      runas: root
    - location: scripts/start_server
      timeout: 300
      runas: root
    - location: scripts/stop_server
      timeout: 300
      runas: root
answered Jun 27, 2019 by Himanshu

Related Questions In AWS

0 votes
1 answer

if instance is a part of some AutoScaling Group in AWS or not ?

You can run this command below on ...READ MORE

answered Jun 1, 2018 in AWS by Cloud gunner
• 4,630 points
0 votes
1 answer
+3 votes
3 answers
0 votes
1 answer

How to add SSL certificate to AWS EC2 with the help of new AWS Certificate Manager service

refer this link You can't install the certificates ...READ MORE

answered Jul 19, 2018 in AWS by Priyaj
• 57,510 points