Skip to content

Instantly share code, notes, and snippets.

@charlierm
Created August 22, 2016 18:28
Show Gist options
  • Save charlierm/d25c02a424af60a7653e7307ac7b2c8c to your computer and use it in GitHub Desktop.
Save charlierm/d25c02a424af60a7653e7307ac7b2c8c to your computer and use it in GitHub Desktop.
# -*- coding: utf-8 -*-
import requests
def handler(context, event):
return "arse candle"
# This is the Serverless Environment File
#
# It contains listing of your stages, and their regions
# It also manages serverless variables at 3 levels:
# - common variables: variables that apply to all stages/regions
# - stage variables: variables that apply to a specific stage
# - region variables: variables that apply to a specific region
vars:
stages:
dev:
vars:
regions:
us-east-1:
vars:
# Welcome to Serverless!
#
# This file is the main config file for your service.
# It's very minimal at this point and uses default values.
# You can always add more config options for more control.
# We've included some commented out config examples here.
# Just uncomment any of them to get that config option.
#
# For full config options, check the docs:
# v1.docs.serverless.com
#
# Happy Coding!
service: favourites-lambda-api # NOTE: update this with your service name
provider:
name: aws
runtime: python2.7
# you can overwrite defaults here
#defaults:
# stage: dev
# region: us-east-1
# you can add packaging information here
#package:
# include:
# - include-me.js
# exclude:
# - exclude-me.js
# artifact: my-service-code.zip
functions:
api:
handler: handler.handler
events:
- http:
path: users/{user}/menus/{menu}
method: get
# you can add any of the following events
# events:
# - http:
# path: users/create
# method: get
# - s3: ${bucket}
# - schedule: rate(10 minutes)
# - sns: greeter-topic
# you can add CloudFormation resource templates here
#resources:
# Resources:
# NewResource:
# Type: AWS::S3::Bucket
# Properties:
# BucketName: my-new-bucket
# Outputs:
# NewOutput:
# Description: "Description for the output"
# Value: "Some output value"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment