Skip to content

Instantly share code, notes, and snippets.

@brianneisler
Last active October 13, 2018 19:47
Show Gist options
  • Save brianneisler/af5bbc7bac2030932de633fa57c6bb8a to your computer and use it in GitHub Desktop.
Save brianneisler/af5bbc7bac2030932de633fa57c6bb8a to your computer and use it in GitHub Desktop.
General serverless function abstractions
name: SimpleService
extends: Service
compute:
type: AwsLambdaCompute
inputs:
provider: ${inputs.providers.aws}
runtime: nodejs
functions:
hello:
compute: ${this.compute}
handler: index.hello
code: ./code
memory: 1024
timeout: 10
components:
cron:
type: Cron
inputs:
function: ${this.functions.hello}
rate: 3m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment