-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplateDev.yaml
More file actions
44 lines (41 loc) · 1.17 KB
/
templateDev.yaml
File metadata and controls
44 lines (41 loc) · 1.17 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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: Parameter handling in dynamoDB - develop template
Resources:
RiskParameters:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: nodejs8.10
Policies: AWSLambdaDynamoDBExecutionRole
MemorySize: 128
Timeout: 60
Environment:
Variables:
DYNAMODB_PARAMS_TABLE: dev.example.parameters
STAGE: dev
dev.example.parameters:
Type: AWS::DynamoDB::Table
Properties:
AttributeDefinitions:
- AttributeName: parameterType
AttributeType: S
- AttributeName: searchIndex
AttributeType: N
KeySchema:
- AttributeName: ParameterType
KeyType: HASH
- AttributeName: searchIndex
KeyType: RANGE
LocalSecondaryIndexes:
- IndexName: uuidScan
KeySchema:
- AttributeName: ParameterType
KeyType: HASH
- AttributeName: searchIndex
KeyType: RANGE
Projection:
ProjectionType: KEYS_ONLY
ProvisionedThroughput:
ReadCapacityUnits: 1
WriteCapacityUnits: 1