Yaml not passing validator

Viewed 33

According to a tutorial I'm using for aws. This Yaml file should work. In atom I have YAML grammar selected and it's not showing any errors. However this is not passing YAML validator online and gives me an error in AWS. Any idea what I'm doing wrong with it?

version: 1
cron:
 — name: "shopify"
   url: "/shopify"
   schedule: "0 * * * *"
2 Answers

You're using an em dash (—) instead of a hyphen (-) on line 3.

You have an em dash (—) instead of a hyphen (-) on the third line.

Related