Skip to content

Instantly share code, notes, and snippets.

@rosskarchner
Created April 27, 2021 16:16
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 rosskarchner/be0e2b20d73081264853c42da03e66f2 to your computer and use it in GitHub Desktop.
Save rosskarchner/be0e2b20d73081264853c42da03e66f2 to your computer and use it in GitHub Desktop.
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Resources:
ServerlessRestApi:
Type: 'AWS::Serverless::Api'
Properties:
StageName: Prod
DefinitionBody:
info:
version: '1.0'
title: !Ref 'AWS::StackName'
x-amazon-apigateway-request-validators:
params-only:
validateRequestBody: false
validateRequestParameters: true
x-amazon-apigateway-request-validator: params-only
paths:
"/authorization":
get:
summary: Starts the IndieAuth authorization process
parameters:
- in: query
name: foo
schema:
type: integer
required: true
x-amazon-apigateway-integration:
uri: !Sub "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${AuthorizationEndpointGet.Arn}/invocations"
httpMethod: GET
timeoutInMillis: 3000
type: "aws_proxy"
responses: {}
openapi: 3.0.1
AuthorizationEndpointGet:
Type: AWS::Serverless::Function
Properties:
CodeUri: authorization_endpoint_get/
Handler: app.lambda_handler
Runtime: python3.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment