Skip to content
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

AWS::StepFunctions::StateMachine Definition property with inline map state was checked with old schema. #3524

Closed
sudoudaisuke opened this issue Jul 19, 2024 · 0 comments · Fixed by #3528

Comments

@sudoudaisuke
Copy link

sudoudaisuke commented Jul 19, 2024

CloudFormation Lint Version

1.8.1

What operating system are you using?

docker container based on python:3.12-alpine

Describe the bug

$ cfn-lint ./a.yaml
E3601 'Iterator' is a required property
a.yaml:9:11

E3601 Additional properties are not allowed ('ItemProcessor' was unexpected)
a.yaml:12:13

Expected behavior

Do not report error.

The 'Iterator' property was deprecated and was replaced by 'ItemProcessor'.

https://docs.aws.amazon.com/step-functions/latest/dg/concepts-asl-use-map-state-inline.html#map-state-inline-deprecated-fields

Reproduction template

Resources:
  MyStateMachine:
    Type: AWS::StepFunctions::StateMachine
    Properties:
      RoleArn: MyStateMachineRole
      Definition:
        StartAt: HelloWorld
        States:
          StartAt: Validate_All
          States:
            Validate_All:
              Type: Map
                InputPath: $.detail
                ItemProcessor:
                  ProcessorConfig:
                    Mode: INLINE
                  StartAt: Validate
                    States:
                      Validate:
                        Type: Pass
                        End: true
                End: true
                ResultPath: $.dtail.shipped
                ItemsPath: $.shipped

  MyStateMachineRole:
    Type: AWS::IAM::Role
    Properties:
      Path: /
      AssumeRolePolicyDocument:
        Version: 2012-10-17
        Statement:
          - Effect: Allow
            Principal:
              Service: [ states.amazonaws.com ]
            Action: [ sts:AssumeRole ]
@sudoudaisuke sudoudaisuke changed the title AWS::StepFunctions::StateMachine Definition property with inline map state is broken AWS::StepFunctions::StateMachine Definition property with inline map state was checked with old schema. Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant