aws/aws-cdk

cdk.aws_stepfunctions.StateMachine: timeout does not apply to .asl.json definition

Open

#37.150 aberto em 3 de mar. de 2026

Ver no GitHub
 (1 comment) (0 reactions) (0 assignees)TypeScript (3.530 forks)batch import
@aws-cdk/aws-stepfunctionsbugdocumentationgood first issuep2

Métricas do repositório

Stars
 (10.710 stars)
Métricas de merge de PR
 (Mesclagem média 13d 14h) (134 fundiu PRs em 30d)

Description

Describe the issue

It seems that the timeout argument to new cdk.aws_stepfunctions.StateMachine is only applied when the definitionBody is a ChainDefinitionBody. The only reference I can find is here: https://github.com/aws/aws-cdk/blob/ebfaf89e6a9018d19eb29dcb42f2a1ec93e81d57/packages/aws-cdk-lib/aws-stepfunctions/lib/state-machine.ts#L486

This behavior is unclear from the documentation: https://github.com/aws/aws-cdk/blob/ebfaf89e6a9018d19eb29dcb42f2a1ec93e81d57/packages/aws-cdk-lib/aws-stepfunctions/lib/state-machine.ts#L127

For users that provide a .asl.json definitionBody, this can cause unexpected behavior.

Links

https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions.StateMachine.html#timeout

Guia do colaborador