question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support the new "Parameters" option of AWS Step Functions

See original GitHub issue

AWS Step Functions released support for Parameters option in the input definition.

CDK should be able to define this attribute:

    const initalTask = new stepfunctions.Task(this, "InitialTask", {
      resource: asyncLambda,
      parameters: {
        "task.$": "$.task"
      }
      inputPath: "$",
      outputPath: "$.state"
    }).next(nextTask);

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
fabio-vitalicommented, Jun 3, 2019

commit d0c52832ec4df8e49f9ddef4bc8b8032019b54df has removed this… can this issue be reopened?

1reaction
guisrxcommented, Jan 4, 2019

I could not use the CloudFormation overrides because what I need is a property (on TaskProps) that will end up as a JSON object. I got it to work for now with this:

    interface ParameterizedTaskProps extends sf.TaskProps {
      parameters: any;
    }

    class ParameterizedTask extends sf.Task {
      private parameterizedProps: ParameterizedTaskProps;

      constructor(parentConstruct: cdk.Construct, id: string, parameterizedProps: ParameterizedTaskProps) {
        super(parentConstruct, id, parameterizedProps);
        this.parameterizedProps = parameterizedProps;
      }

      public toStateJson(): object {
        const stateJson = {
          ...super.toStateJson(),
          Parameters: this.parameterizedProps.parameters
        };
        return stateJson;
      }
    }
Read more comments on GitHub >

github_iconTop Results From Across the Web

Pass Parameters to a Service API - AWS Step Functions
Use the "Parameters" field in a Task state to control what parameters are passed to a service API. Pass Static JSON as Parameters....
Read more >
AWS Step Function Tips and Tricks - In Plain English
4 hacks to help construct workflows · 1. Lifting a single value into an Array · 2. Concatenating items into a single array...
Read more >
AWS Step function - Field Parameters is not supported in ...
I'm trying to create an AWS Step function, but it is showing an error message as Field Parameters is not supported in the...
Read more >
Getting Started with AWS Step Functions | Alex Hyett
More useful is the Parameters option which allows you to construct an object using values from the previous state result. For example, if...
Read more >
[Handbook] AWS Step Functions Input and Output ...
Using the Parameters field will help you create a collection of key-value pairs that are all passed as input. These values can be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found