Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save singledigit/cfcd8bc6a1ed421c6b6b1196f189931d to your computer and use it in GitHub Desktop.
Save singledigit/cfcd8bc6a1ed421c6b6b1196f189931d to your computer and use it in GitHub Desktop.
Non-proxy catch all endpoint
openapi: "3.0.1"
info:
title: "vtl-example"
version: "1.0"
servers:
- url: "https://r5aji4fod4.execute-api.us-west-2.amazonaws.com/{basePath}"
variables:
basePath:
default: "/Prod"
paths:
/{proxy+}:
x-amazon-apigateway-any-method:
parameters:
- name: "proxy"
in: "path"
required: true
schema:
type: "string"
responses:
"400":
description: "400 response"
content: {}
"200":
description: "200 response"
content: {}
x-amazon-apigateway-integration:
credentials: "arn:aws:iam::55555555555:role/vtl-example-HelloWorldStateMachineApiEventRole-TT2EO0WZEX69"
httpMethod: "POST"
uri: "arn:aws:apigateway:us-west-2:states:action/StartExecution"
responses:
"200":
statusCode: "200"
"400":
statusCode: "400"
requestTemplates:
application/json: "{\"input\": \"$util.escapeJavaScript($input.json('$'))\"\
, \"stateMachineArn\": \"arn:aws:states:us-west-2:55555555555:stateMachine:HelloWorldStateMachine-ETKhkDYP8spH\"\
}"
passthroughBehavior: "when_no_match"
type: "aws"
components: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment