Skip to content

Property EventInvokeConfig not defined for resource of type AWS::Serverless::Function #1747

@TLaue

Description

@TLaue

Description

Briefly describe the bug you are facing.
Serverless function definition with "EventInvokeConfig" section which should be supported according to the AWS Sam documentation leads to validiation and build error.

Steps to reproduce

Provide steps to replicate.

TestFunction:
    Type: AWS::Serverless::Function
    Properties:
      CodeUri: src/test
      EventInvokeConfig:
        DestinationConfig:
          OnFailure:
            Destination: !Ref TestDLQ
            Type: SQS
        MaximumEventAgeInSeconds: 60
        MaximumRetryAttempts: 2

Observed result

InvalidResourceException('TestFunction',_ 'property EventInvokeConfig not defined for resource of type AWS::Serverless::Function')]

Please provide command output with --debug flag set.
sam validate --profile ...
sam build

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS: Linux
  2. sam --version: 0.40.0

Add --debug flag to command you are running

Metadata

Metadata

Assignees

No one assigned

    Labels

    stage/waiting-for-releaseFix has been merged to develop and is waiting for a release

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions