Skip to content

Instantly share code, notes, and snippets.

@brianneisler
Last active January 22, 2019 19:04
Show Gist options
  • Save brianneisler/8f71a548fc4123028d5213fe72225336 to your computer and use it in GitHub Desktop.
Save brianneisler/8f71a548fc4123028d5213fe72225336 to your computer and use it in GitHub Desktop.
Changing function's compute to Fargate
name: SimpleService
extends: Service
compute:
type: AwsFargateCompute # switched from AwsLambdaCompute
inputs:
runtime: nodejs
memory: 1024
timeout: 3600
functions:
indexPosts:
compute: ${this.compute}
handler: index.indexPosts
code: ./code
components:
cron:
type: Cron
inputs:
function: ${this.functions.indexPosts}
rate: 1h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment