Hi the tutorial code doesn't work

functions:
  dispatcher:
    handler: dispatcher.handler
    events:
      - sns:
          topicName: dispatcher
          redrivePolicy:
            deadLetterTargetRef: myDLQ

resources:
  Resources:
    myDLQ:
      Type: AWS::SQS::Queue
      Properties:
        QueueName: myDLQ

Error:


  TypeError: Cannot read property 'Fn::GetAtt' of undefined
      at../node_modules/serverless/lib/plugins/aws/package/compile/events/sqs.js:61:33
      at functionObj.events.forEach (../node_modules/serverless/lib/plugins/aws/package/compile/events/sqs.js:70:15)
      at Array.forEach (<anonymous>)
      at serverless.service.getAllFunctions.forEach (../node_modules/serverless/lib/plugins/aws/package/compile/events/sqs.js:44:28)
      at Array.forEach (<anonymous>)
      at AwsCompileSQSEvents.compileSQSEvents (../node_modules/serverless/lib/plugins/aws/package/compile/events/sqs.js:34:47)
      at PluginManager.invoke (../node_modules/serverless/lib/classes/PluginManager.js:576:20)

Hey, have you found a tutorial code that works ?

Mini Militia App Lock