Error in creating cluster with ekstcl

apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig

metadata:
  name: rasa-x-eksctl
  region: eu-central-1
  version: "1.19"

availabilityZones: ["eu-central-1a", "eu-central-1b"]

managedNodeGroups:
- name: nodegroup
  desiredCapacity: 3
  instanceType: t3.medium

getting following error

At line:12 char:2
+ - name: nodegroup
+  ~
Missing expression after unary operator '-'.
At line:12 char:3
+ - name: nodegroup
+   ~~~~~
Unexpected token 'name:' in expression or statement.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : MissingExpressionAfterOperator