title: Pass and use input (parameters) to a lambda task from a step function
body: <p>I have a simple step function launching a lambda and I am looking for a way to pass parameters (event / context) to each of several consequent tasks. My step function looks like this: </p>
  
  <pre><code>{
    "Comment": "A Hello World example of the Amazon States Language using an AWS Lambda function",
    "StartAt": "HelloWorld",
    "States": {
      "HelloWorld": {
        "Type": "Task",
        "Parameters": {
          "TableName": "table_example"
        },
        "Resource": "arn:aws:lambda:ap-southeast-2:XXXXXXX:function:fields_sync",
        "End": true
      }
    }
  }
  </code></pre>
  
  <p>In the lambda written with Python I am using a simple handler which is: </p>
  
  <pre><code>def lambda_handler(event, context):
      #...
  </code></pre>
  
  <p>The event and context look like this (checking the logs): </p>
  
  <blockquote>
    <p>START RequestId: f58140b8-9f04-47d7-9285-510b0357b4c2 Version: $LATEST</p>
  </blockquote>
  
  <p>I cannot find a way to pass parameters to this lambda and to use them in the script. Essentially, what I am trying to do is to run the same lambda passing a few different values as a parameter. </p>
  
  <p>Could anyone please point me in the right direction? </p>