This repository was archived by the owner on Jan 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
69 lines (61 loc) · 1.6 KB
/
serverless.yml
File metadata and controls
69 lines (61 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# For full config options, check the docs:
# docs.serverless.com
service: email-diff
# You can pin your service to only deploy with a specific Serverless version
# Check out our docs for more details
# frameworkVersion: "=X.X.X"
provider:
name: aws
runtime: ruby2.5
region: us-east-2
stage: default
timeout: 30
# 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:
include:
- lib/**
# exclude:
# - exclude-me.py
# - exclude-me-dir/**
functions:
email-diff:
handler: lib/email_diff.EmailDiff.call
events:
- http:
path: email-diff/{id}
method: any
environment:
ENV: production
FAUNA_DB_KEY: ${env:FAUNA_DB_KEY}
FROM_EMAIL: ${env:FROM_EMAIL}
MAILGUN_DOMAIN: ${env:MAILGUN_DOMAIN}
MAILGUN_API_KEY: ${env:MAILGUN_API_KEY}
RECIPIENTS: ${env:RECIPIENTS}
SENTRY_DSN: ${env:SENTRY_DSN}
plugins:
- serverless-ruby-package
#resources:
# Resources:
# NewResource:
# Type: AWS::S3::Bucket
# Properties:
# BucketName: my-new-bucket
# Outputs:
# NewOutput:
# Description: "Description for the output"
# Value: "Some output value"