-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_provider.yml
More file actions
54 lines (54 loc) · 1.99 KB
/
_provider.yml
File metadata and controls
54 lines (54 loc) · 1.99 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
name: aws
runtime: nodejs14.x
region: eu-central-1
versionFunctions: false
iam:
role:
statements:
- Effect: Allow
Action:
- dynamodb:Query
- dynamodb:Scan
- dynamodb:GetItem
- dynamodb:PutItem
- dynamodb:UpdateItem
- dynamodb:DeleteItem
- dynamodb:DescribeStream
- dynamodb:ListStreams
- dynamodb:GetRecords
- dynamodb:GetShardIterator
- dynamodb:ListShards
- dynamodb:BatchGetItem
Resource:
- "arn:aws:dynamodb:${opt:region, self:provider.region}:*:table/${env:DYNAMODB_TABLE_EVENT_LOG}"
- "arn:aws:dynamodb:${opt:region, self:provider.region}:*:table/${env:DYNAMODB_TABLE_EVENT_LOG}/index/*"
- "arn:aws:dynamodb:${opt:region, self:provider.region}:*:table/${env:DYNAMODB_TABLE_EVENT_LOG}/stream/*"
- "arn:aws:dynamodb:${opt:region, self:provider.region}:*:table/${env:DYNAMODB_TABLE_USER_PROJECTION}"
- "arn:aws:dynamodb:${opt:region, self:provider.region}:*:table/${env:DYNAMODB_TABLE_USER_PROJECTION}/index/*"
- Effect: Allow
Action:
- sqs:*
Resource:
- arn:aws:sqs:*
- Effect: Allow
Action:
- "sns:Publish"
Resource:
- arn:aws:sns:*
- Effect: 'Allow'
Action:
- es:ESHttpDelete
- es:ESHttpGet
- es:ESHttpHead
- es:ESHttpPost
- es:ESHttpPut
Resource: ${self:resources.Outputs.OpenSearchDomainArn.Value}
environment:
DYNAMODB_TABLE_EVENT_LOG_STREAM_ARN: ${env:DYNAMODB_TABLE_EVENT_LOG_STREAM_ARN}
DYNAMODB_TABLE_EVENT_LOG: ${env:DYNAMODB_TABLE_EVENT_LOG}
DYNAMODB_REGION: ${env:DYNAMODB_REGION}
DYNAMODB_TABLE_USER_PROJECTION: ${env:DYNAMODB_TABLE_USER_PROJECTION}
SECRET: verysecret
OPENSEARCH_DOMAIN_ENDPOINT: ${self:resources.Outputs.OpenSearchDomainEndpoint.Value}
OPENSEARCH_USERS_PROJECTION_INDEX: 'users'
OPENSEARCH_ARTICLES_PROJECTION_INDEX: 'articles'