Skip to content

Can you add support for Cloudformation replacements? #131

@ispyinternet

Description

@ispyinternet

When building state matchines using a Cloudformation resource and an external json file, there is support to replace Resource ARNs using DefinitionSubstitions see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-statemachine.html

It would be great if the following file which uses this pattern could pass the validation!?:

{
    "Comment": "AWS Step Functions Example",
    "StartAt": "Start",
    "Version": "1.0",
    "States": {
        "Start": {
            "Type": "Task",
            "Resource": "${StartArn}",
            "Next": "Parallel State"
        },
        "Parallel State": {
            "Type": "Parallel",
            "Next": "End",
            "Branches": [{
                    "StartAt": "Wait3000",
                    "States": {
                        "Wait3000": {
                            "Type": "Task",
                            "Resource": "${Wait3000Arn}",
                            "End": true
                        }
                    }
                },
                {
                    "StartAt": "Wait500",
                    "States": {
                        "Wait500": {
                            "Type": "Task",
                            "Resource": "${Wait500Arn}",
                            "End": true
                        }
                    }
                }
            ]
        },
        "End": {
            "Type": "Task",
            "Resource": "${EndArn}",
            "End": true
        }
    }
}

Edit: asked at: awslabs/statelint#41

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions