Skip to content

Instantly share code, notes, and snippets.

@keithrozario
Created October 3, 2019 10:33
Show Gist options
  • Save keithrozario/39f2d97586ed0a05261a9334a6297f0e to your computer and use it in GitHub Desktop.
Save keithrozario/39f2d97586ed0a05261a9334a6297f0e to your computer and use it in GitHub Desktop.
example_demo at pycon
service: demo
provider:
name: aws
region: ap-southeast-1
runtime: python3.7
functions:
hello:
handler: hello.main
memorySize: 128
timeout: 10
concurrency: 10
events:
- http:
path: /api/v1/hello
method: GET
goodbye:
handler: goodbye.main
memorySize: 256
timeout: 10
concurrency: 5
events:
- http:
path: /api/v1/goodbye
method: GET
- http:
path: /api/v1/goodbye
method: POST
- http:
path: /api/v1/hello
method: POST
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment