question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using null in AWS::Serverless::StateMachine in the ResultPath throws incorrect E0000 error

See original GitHub issue

StateMachines 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:closed
  • Created 3 years ago
  • Reactions:12
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

6reactions
nikgibbenscommented, Feb 17, 2022

Where are we at with this? It’s 2022 and the problem still persists in CloudFormation with YAML.

1reaction
kddejongcommented, Nov 4, 2022

that is useful and I wonder if its a bug in how the AWS::LanguageExtensions works.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found