-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: References always converted into strings for Step Functions definition substitutions - Can't use a CF parameter for TimeoutSeconds attribute (Integer) #1616
Comments
Update: I have inspected the changeset to verify how SAM is transforming the state machine definition. This is the transformed definition (just the snippet corresponding to my task):
As you can see, the So I think there is something wrong with the SAM transformation, probably somewhere around here: https://github.com/awslabs/serverless-application-model/blob/develop/samtranslator/model/stepfunctions/generators.py#L254 |
Glad this is being addressed already! I just came over here to also add this is an issue when using Fn::FindInMap for instance when I have different TimeoutSeconds between dev, test & prod. |
Not sure if this is the place to post this or open a new report. This is also an issue with the retry fields:
Will convert the Integer stored in the Map to a String and throw an error on deployment. This worked in the normal Non-SAM StepFunctions resources. |
Is this still being worked on the branch doesn't seem to have seen activity for a month now. |
This seems to still be a problem. We basically can't pass any integer values using the |
I encountered this issue today when trying to use the value of a parameter for the Template Snippets:
Error:
|
Should this be fixed for |
I just hit this for |
You might be able to get this to work by adding Transform:
- AWS::LanguageExtensions
- AWS::Serverless-2016-10-31
See #2533 for more information. |
Closing in favor of #2533. |
I just now ran into same situation while trying to pass "TimeoutSeconds" as integer in |
Description: when I create a
AWS::Serverless::StateMachine
resource, I'd like to parametrize the value of my state'sTimeoutSeconds
attribute using a CloudFormation parameter.I've defined the parameter as follows:
and I'm referencing it in my task definition as follows:
Steps to reproduce the issue:
TimeoutSeconds
attributeObserved result:
The deployment fails with this error message:
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?The text was updated successfully, but these errors were encountered: