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 in AWS by Kisna
281 views

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
files:
  - source: /index.html
    destination: /var/www/html/
hooks:
  BeforeInstall:
    - location: scripts/install_dependencies
      timeout: 300
      runas: root
    - location: scripts/start_server
      timeout: 300
      runas: root
  ApplicationStop:
    - location: scripts/stop_server
      timeout: 300
      runas: root
answered Jun 27 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,280 points
72 views
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  https://aws.amazon.com/certificate-manager/faqs/ You can't install the certificates ...READ MORE

answered Jul 19, 2018 in AWS by Priyaj
• 57,300 points
97 views