-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
56 lines (46 loc) · 1.95 KB
/
serverless.yml
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
# Welcome to Funktor & Serverless!
#
# This file is the main config file for your service.
# It's already configured to run Funktor, you just have to deploy it.
#
# For more info about Funktor:
# TODO
#
# For more about serverless, check their docs:
# docs.serverless.com
#
# Happy Coding!
# The name of your service. All your AWS resources will contain this name.
service: funktor-testbed
# This causes serverless to throw an error early if the config is bad, instead of waiting for CloudFormation to try and fail to deploy it.
configValidationMode: error
# Pin the serverless framework to the 2.x line
frameworkVersion: '2'
provider:
name: aws
runtime: ruby2.7
lambdaHashingVersion: 20201221
environment: ${file(funktor_config/environment.yml)}
versionFunctions: false # Reduces the amount of storage used since all Lambdas together are limited to 75GB
iamRoleStatements:
- ${file(funktor_config/iam_permissions/default_queue.yml)}
- ${file(funktor_config/iam_permissions/incoming_job_queue.yml)}
- ${file(funktor_config/iam_permissions/ssm.yml)}
custom:
# Our stage is based on what is passed in when running serverless
# commands. Or fallsback to what we have set in the provider section.
stage: ${self:provider.stage, 'dev'}
funktor: ${file(funktor_config/funktor.yml)}
rubyLayer: ${file(funktor_config/ruby_layer.yml)}
package: ${file(funktor_config/package.yml)}
functions:
IncomingJobHandler: ${file(funktor_config/function_definitions/incoming_job_handler.yml)}
DefaultQueueHandler: ${file(funktor_config/function_definitions/default_queue_handler.yml)}
RandomJobGenerator: ${file(funktor_config/function_definitions/random_job_generator.yml)}
resources:
- ${file(funktor_config/resources/incoming_job_queue_user.yml)}
- ${file(funktor_config/resources/cloudwatch_dashboard.yml)}
- ${file(funktor_config/resources/default_queue.yml)}
- ${file(funktor_config/resources/incoming_job_queue.yml)}
plugins:
- serverless-ruby-layer