mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
27 lines
681 B
YAML
27 lines
681 B
YAML
# Welcome to serverless. Read the docs
|
|
# https://serverless.com/framework/docs/
|
|
|
|
# Serverless.yml is the configuration the CLI
|
|
# uses to deploy your code to your provider of choice
|
|
|
|
# The `service` block is the name of the service
|
|
service: serverless-hello-world
|
|
|
|
frameworkVersion: '2'
|
|
|
|
# The `provider` block defines where your service will be deployed
|
|
provider:
|
|
name: aws
|
|
runtime: nodejs12.x
|
|
|
|
# The `functions` block defines what code to deploy
|
|
functions:
|
|
helloWorld:
|
|
handler: handler.helloWorld
|
|
# The `events` block defines how to trigger the handler.helloWorld code
|
|
events:
|
|
- http:
|
|
path: hello-world
|
|
method: get
|
|
cors: true
|