mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
69 lines
1.7 KiB
YAML
69 lines
1.7 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: aws-python # NOTE: update this with your service name
|
|
|
|
provider:
|
|
name: aws
|
|
runtime: python2.7
|
|
|
|
# you can overwrite defaults here
|
|
# stage: dev
|
|
# region: us-east-1
|
|
|
|
# you can add statements to the Lambda function's IAM Role here
|
|
# iamRoleStatements:
|
|
# - Effect: "Allow"
|
|
# Action:
|
|
# - "s3:ListBucket"
|
|
# Resource: { "Fn::Join" : ["", ["arn:aws:s3:::", { "Ref" : "ServerlessDeploymentBucket" } ] ] }
|
|
# - Effect: "Allow"
|
|
# Action:
|
|
# - "s3:PutObject"
|
|
# Resource:
|
|
# Fn::Join:
|
|
# - ""
|
|
# - - "arn:aws:s3:::"
|
|
# - "Ref" : "ServerlessDeploymentBucket"
|
|
|
|
# you can add packaging information here
|
|
#package:
|
|
# exclude:
|
|
# - exclude-me.js
|
|
# artifact: my-service-code.zip
|
|
|
|
functions:
|
|
hello:
|
|
handler: handler.hello
|
|
|
|
# you can add any of the following events
|
|
# events:
|
|
# - http:
|
|
# path: users/create
|
|
# method: get
|
|
# - s3: ${env: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"
|