Skip to content

Instantly share code, notes, and snippets.

@JavyMB
Created June 11, 2018 15:49
Show Gist options
  • Save JavyMB/f5d89312b59614481dfe473341464fe2 to your computer and use it in GitHub Desktop.
Save JavyMB/f5d89312b59614481dfe473341464fe2 to your computer and use it in GitHub Desktop.
service: fbWebhook
provider:
name: aws
runtime: python3.6
functions:
fbwebhook:
handler: handler.webhook
environmentVariables:
VERIFY_TOKEN: '123456789012349001234123123123'
vpc:
securityGroupIds:
- sg-2cf5ad59
- sg-89e673ed
subnetIds:
- subnet-62ddba4d
events:
- http:
path: webhook
method: get
integration: lambda
response:
headers:
Content-Type: "'text/html'"
template: $input.path('$.body')
- http:
path: webhook
method: post
integration: lambda
package:
exclude:
- venv/** # virtualenv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment