mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
# 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:
|
|
# docs.serverless.com
|
|
#
|
|
# Happy Coding!
|
|
|
|
service: spotinst-python # NOTE: update this with your service name
|
|
|
|
provider:
|
|
name: spotinst
|
|
#stage: <Stage Name> #Optional setting. By default it is set to 'dev'
|
|
spotinst:
|
|
#environment: <env-XXXX> # NOTE: Remember to add the environment ID
|
|
|
|
functions:
|
|
hello:
|
|
runtime: python2.7
|
|
handler: handler.main
|
|
memory: 128
|
|
timeout: 30
|
|
access: private
|
|
# cron: # Setup scheduled trigger with cron expression
|
|
# active: true
|
|
# value: '* * * * *'
|
|
# environmentVariables: {
|
|
# Key: "Value",
|
|
# }
|
|
|
|
# extend the framework using plugins listed here:
|
|
# https://github.com/serverless/plugins
|
|
plugins:
|
|
- serverless-spotinst-functions
|