stepfunctions-tasks: StepFunctionsStartExecution should add AWS_STEP_FUNCTIONS_STARTED_BY_EXECUTION_ID
See original GitHub issueIt’d be nice to have a property that’ll add the AWS_STEP_FUNCTIONS_STARTED_BY_EXECUTION_ID
to the input payload.
Use Case
This will make it easy to add the AWS_STEP_FUNCTIONS_STARTED_BY_EXECUTION_ID
to the input payload.
Proposed Solution
const finalTransformExecution = new StepFunctionsStartExecution(
scope,
'Final Transform',
{
stateMachine: finalTransformSfn,
integrationPattern: IntegrationPattern.RUN_JOB,
// Proposed property, but horrible name. ;)
addStartedById: true,
outputPath: '$.Output',
},
);
Other
This would assist in removing some of the workarounds I’ve implemented to get this to work. https://github.com/aws/aws-cdk/issues/14777
- 👋 I may be able to implement this feature request
- ⚠️ This feature might incur a breaking change
This is a 🚀 Feature Request
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
class StepFunctionsStartExecution (construct) · AWS CDK
Add retry configuration for this state. This controls if and how the execution will be retried if a particular error occurs. bindToGraph(graph).
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I agree this is nontrivial, but I still think possible. We have information about whether
TaskInput
is from a constructed object or directly taken from a JSON path. This means we can decide whether or not to supportassociateWithParent
based on what is passed in forinput
. Something like:I think a
executionId
static property ofJsonPath
is a great idea too! Just not a good replacement for this feature IMO@hassanazharkhan yes, please feel free to open a PR for this feature. I think an appropriate name for the property would be
associateWithParent
and it should default totrue