Using null in AWS::Serverless::StateMachine in the ResultPath throws incorrect E0000 error
See original GitHub issueStateMachines allow for a null value in the ResultPath Property to pass input directly to the output
Below is a minimal example of a template that is proper but flagged as invalid
AWSTemplateFormatVersion: 2010-09-09
Transform: AWS::Serverless-2016-10-31
Resources:
rLambda:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: python3.6
InlineCode: |
def handler(event, context):
print(event)
return
rTestMachine:
Type: AWS::Serverless::StateMachine
Properties:
Definition:
StartAt: myState
States:
myState:
Type: Task
Resource: !GetAtt rLambda.Arn
ResultPath: null
End: true
Policies:
- Statement:
- Sid: Test
Effect: Allow
Action:
- lambda:Invoke*
Resource: !GetAtt rLambda.Arn
Adding quotes around null does not resolve the issue as the value of the property needs to evaluate to null. An exception for null checking should be added for this Parameter
Issue Analytics
- State:
- Created 3 years ago
- Reactions:12
- Comments:14 (6 by maintainers)
Top Results From Across the Web
Using null in AWS::Serverless::StateMachine in the ... - GitHub
Using null in AWS::Serverless::StateMachine in the ResultPath throws incorrect E0000 error #1657. Closed.
Read more >Error handling in Step Functions - AWS Documentation
Step Functions identifies errors in the Amazon States Language using ... Step Functions failed to apply a state's ResultPath field to the input...
Read more >How can I pass the input and error of my failing task to a ...
Use ResultPath in a Catch to include the error with the original input, instead of replacing it. ResultPath (Optional).
Read more >Correct a #NULL! error - Microsoft Support
This error is shown when you use an incorrect range operator in a formula, or when you use an intersection operator (space character)...
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
Where are we at with this? It’s 2022 and the problem still persists in CloudFormation with YAML.
that is useful and I wonder if its a bug in how the
AWS::LanguageExtensions
works.