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 28, 2019 in AWS by Kisna
6,029 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 28, 2019 by Himanshu

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
+3 votes
3 answers
+1 vote
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
• 58,100 points
1,312 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP