acantril / learn-cantrill-io-labs

Standard and Advanced Demos for learn.cantrill.io courses

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pet-Cuddle-O-Tron - STAGE 3B ASL code does not match video

H-Adrian opened this issue · comments

The link at this line which looks like this:

{
  "Comment": "Pet Cuddle-o-Tron - using Lambda for email.",
  "StartAt": "Timer",
  "States": {
    "Timer": {
      "Type": "Wait",
      "SecondsPath": "$.waitSeconds",
      "Next": "Email"
    },
    "Email": {
      "Type" : "Task",
      "Resource": "arn:aws:states:::lambda:invoke",
      "Parameters": {
        "FunctionName": "EMAIL_LAMBDA_ARN",
        "Payload": {
          "Input.$": "$"
        }
      },
      "Next": "NextState"
    },
    "NextState": {
      "Type": "Pass",
      "End": true
    }
  }
}

that contains the ASL code does not match the code shown in the video:
image

Am I doing something wrong? Otherwise I'm surprised this has been like this for 3 years if that's the case.

Where are you watching this video ? the image you paste seems to be out of date and i've updated it since then.