Skip to content

Kinesis selectionPattern wrong, causing deployment failure #205

@quitedensepoint

Description

@quitedensepoint

The selectionPattern used in the code for specifically the Kinesis response templates appears to be using an incorrect number type when it should be a string. It is not overridable in the serverless.yml file. To get my team unblocked here, I had to fork this package internally with a fix.

To reproduce the problem, just attempt to deploy any Kinesis -> Lambda integration with serverless.yml code such as the following:

custom:
  apiGatewayServiceProxies:
    - kinesis:
        path: /myPath
        method: post
        action: PutRecord
        streamName: { Ref: 'MyStream' }

For full disclosure, I was deploying only to LocalStack 2.2 at the time instead of real AWS, so it's possible LocalStack is more strict than AWS here. But the AWS documentation definitely states that the expected type is a string:
Docs Link

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