You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug: References always converted into strings for Step Functions definition substitutions - Can't use a CF parameter for TimeoutSeconds attribute (Integer) #1616
Description: when I create a AWS::Serverless::StateMachine resource, I'd like to parametrize the value of my state's TimeoutSeconds attribute using a CloudFormation parameter.
I've defined the parameter as follows:
Parameters:
myParameter:
Type: NumberDefault: 300
and I'm referencing it in my task definition as follows:
Try to reference the parameter in the TimeoutSeconds attribute
Observed result:
The deployment fails with this error message:
Invalid State Machine Definition: 'SCHEMA_VALIDATION_FAILED: Expected value of type Integer
Expected result:
I'd expect the deploy to succeed since the parameter type and value are valid.
My understanding is that CloudFormation treats every parameter as a string under the hood, even if you define it as Type: Number. But then how do I get to use this parameter as an Integer, as SAM is expecting? Is this a SAM issue or a Step Functions issue?
darko-mesaros, benkehoe, rts-rob, faridnsh, patricknazar and 15 more