Skip to content

Instantly share code, notes, and snippets.

@georgmao
Created April 27, 2021 02:10
Show Gist options
  • Save georgmao/75ca6b9531be542eaf42ae09caed43a9 to your computer and use it in GitHub Desktop.
Save georgmao/75ca6b9531be542eaf42ae09caed43a9 to your computer and use it in GitHub Desktop.
A basic SAM Template for an API that uses DefinitionUri OpenApi specs
# Create a HttpApi with a YAML OpenAPI Spec
# Specify a local file path. SAM will replace it with a S3 path and upload for you
# Or you can specify a s3 path directly
Type: AWS::Serverless::HttpApi or #AWS::Serverless::Api (REST APIs)
Properties:
DefinitionUri: ./openapi.yaml or # s3://<mybucket>/<openapi-file-path>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment