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
7,318 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
0 votes
1 answer

Prometheus monitoring: Show maximum number of nodes allowed in a node group (AWS EKS)

You can use the Prometheus eks_nodegroup_capacity metric ...READ MORE

answered Feb 17, 2023 in AWS by anonymous
623 views
+3 votes
3 answers
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