-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathserverless.yml
42 lines (42 loc) · 1.16 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
service: log-shipper
custom:
stage: '${opt:stage, self:provider.stage}'
region: '${opt:region, self:provider.region}'
plugins:
- serverless-pseudo-parameters
- serverless-step-functions
functions:
logShipper:
handler: lib/handlers/log-shipper.handler
stepFunctions: {}
provider:
name: aws
runtime: nodejs8.10
stage: prod
region: us-west-1
environment: '${file(serverless-config/env.yml):${self:custom.stage}}'
iamRoleStatements:
- Effect: Allow
Action:
- 'xray:PutTraceSegments'
- 'xray:PutTelemetryRecords'
Resource:
- '*'
- Effect: Allow
Action:
- 'ssm:GetParameter'
- 'ssm:GetParametersByPath'
Resource:
- 'arn:aws:ssm:us-west-1*'
- Effect: Allow
Action:
- 'states:ListStateMachines'
- 'states:CreateActivity'
- 'states:StartExecution'
- 'states:ListExecutions'
- 'states:DescribeExecution'
- 'states:DescribeStateMachineForExecution'
- 'states:GetExecutionHistory'
Resource:
- 'arn:aws:states:us-west-1:7419-7656-9717:stateMachine:*'
- 'arn:aws:states:us-west-1:7419-7656-9717:execution:*:*'