Created
April 27, 2021 16:16
-
-
Save rosskarchner/be0e2b20d73081264853c42da03e66f2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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