-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
52 lines (52 loc) · 1.4 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
service: nest-serverless-framework-demo
useDotenv: true
plugins:
- serverless-offline
- serverless-step-functions
- serverless-dotenv-plugin
provider:
name: aws
iam:
role:
statements:
- Effect: Allow
Action:
- ec2:DescribeNetworkInterfaces
- ec2:CreateNetworkInterface
- ec2:DeleteNetworkInterface
- ec2:DescribeInstances
- ec2:AttachNetworkInterface
- ec2:AssignPrivateIpAddresses
- ec2:UnassignPrivateIpAddresses
Resource: "*"
runtime: nodejs18.x
functions:
main:
handler: dist/serverless.handler
events:
- http:
method: any
path: /
- http:
method: ANY
path: "{proxy+}"
stepFunctions:
handler: dist/serverless.handlerStepFunctions
microservices:
handler: dist/microservices.handler
events:
- rabbitmq:
arn: ${env:RABBIT_BROKER_ARN}
queue: sales
basicAuthArn: ${env:RABBIT_BASIC_AUTH_ARN}
- rabbitmq:
arn: ${env:RABBIT_BROKER_ARN}
queue: informations
basicAuthArn: ${env:RABBIT_BASIC_AUTH_ARN}
- rabbitmq:
arn: ${env:RABBIT_BROKER_ARN}
queue: transports
basicAuthArn: ${env:RABBIT_BASIC_AUTH_ARN}
stepFunctions:
stateMachines:
testStepFunction: ${file(src/step-functions/test-step-function/definition.yml)}