Skip to content

Instantly share code, notes, and snippets.

@thanakijwanavit
Last active September 21, 2020 13:16
Show Gist options
  • Select an option

  • Save thanakijwanavit/acf2d71cbae331831544fe88f6111d5c to your computer and use it in GitHub Desktop.

Select an option

Save thanakijwanavit/acf2d71cbae331831544fe88f6111d5c to your computer and use it in GitHub Desktop.
yaml template for aws iam authorizer in sam
DeepleSearchApi:
Type: AWS::Serverless::Api
Properties:
StageName: Prod
Auth:
DefaultAuthorizer: AWS_IAM
EndpointConfiguration:
Type: EDGE
MethodSettings:
CachingEnabled: True
DataTraceEnabled: True
LoggingLevel: INFO
MetricsEnabled: True
Function:
Type: AWS::Serverless::Function
Properties:
Events:
DeepleSearchEvent:
Type: Api
Properties:
Path: /deeplesearch
Method: post
RestApiId: !Ref DeepleSearchApi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment