Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

CREATE_FAILED: ApiGatewayMethodActionPost (AWS::ApiGateway::Method) - Invalid type for parameter selectionPattern #256

Copy link
Copy link

Description

@neeraj-sharma-0725
Issue body actions

I'm trying to deploy my serverless app on local stack but Invalid type parameter for selectionPattern error is being thrown. Below is the complete error and serverless.yml

Error:

ApiGatewayMethodActionPost (Parameter validation failed:; Invalid type for parameter selectionPattern, value: 200, type: <class 'int'>, valid types: <class 'str'>)

serverless.yml

  events:
    - http:
        path: /action
        method: POST
        iamRole: arn:aws:iam::xxxxxxxxxxxx:role/someRole
        action: StartSyncExecution
        request:
          template:
            application/json: |
              {
                "stateMachineArn":"arn:aws:states:'us-west-2':xxxxxxxxxxxx:stateMachine:someMachine",
                "input": "$util.escapeJavaScript($input.json('$'))"
              }
        response:
            template: 
              application/json: |
                $input.path('$.output')

I was checking serverless-step-function code where selectionPattern is defined as integer and not string. Following is the link to the code: code

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.