-
Notifications
You must be signed in to change notification settings - Fork 0
/
cdk.json
145 lines (145 loc) · 7.08 KB
/
cdk.json
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{
"app": "python3 app.py",
"context": {
"prefix": "multa-cvm",
"environments": {
"dev": {
"views": {
"api": {
"apigateway_name": "api",
"apigateway_description": "API Gateway used for Multa Device Agents to be associated to the AWS IoT",
"authorizer_function": {
"origin": {
"lambda_name": "authorizer",
"description": "Authorizer Lambda function for Multa Device Agents",
"code_path": "./src",
"runtime": "PYTHON_3_7",
"handler": "applications.aws_lambda.basic.lambda_authorizer.lambda_handler",
"layers": [],
"timeout": 15,
"environment_vars": {
"LOG_LEVEL": "INFO",
"APP_CONFIG_PATH": "/multa-cvm/dev/config-parameters"
},
"iam_actions": ["ssm:GetParametersByPath"]
}
},
"settings": {
"proxy": false,
"default_cors_options": {
"allow_origins": [
"*"
],
"options_status_code": 200
},
"default_http_methods": [
"GET",
"POST"
],
"default_stage_options": {
"metrics_enabled": true,
"logging_level": "INFO"
},
"default_handler": {
"lambda_name": "default",
"description": "Handler Lambda for Multa Agents Certificate Vending Machine.",
"code_path": "./src",
"runtime": "PYTHON_3_7",
"handler": "applications.aws_lambda.basic.lambda_register.lambda_handler",
"layers": [],
"timeout": 10,
"environment_vars": {
"LOG_LEVEL": "INFO",
"APP_CONFIG_PATH": "/multa-cvm/dev/config-parameters"
},
"iam_actions": [
"ssm:GetParametersByPath", "iot:ListThingTypes", "iot:GetPolicy",
"iot:DescribeThing", "iot:CreateKeysAndCertificate", "iot:AttachPolicy",
"iot:CreateThing", "iot:AttachThingPrincipal"
]
}
},
"resource_trees": [
{
"resource_name": "register",
"methods": [
"POST"
],
"handler": {
"lambda_name": "register",
"description": "Handler Lambda for Multa Agents Certificate Vending Machine.",
"code_path": "./src/",
"runtime": "PYTHON_3_7",
"handler": "applications.aws_lambda.basic.lambda_register.lambda_handler",
"layers": [],
"timeout": 10,
"environment_vars": {
"LOG_LEVEL": "INFO",
"APP_CONFIG_PATH": "/multa-cvm/dev/config-parameters"
},
"iam_actions": [
"ssm:GetParametersByPath", "iot:ListThingTypes", "iot:GetPolicy",
"iot:DescribeThing", "iot:CreateKeysAndCertificate", "iot:AttachPolicy",
"iot:CreateThing", "iot:AttachThingPrincipal"
]
}
}
]
}
},
"ssm": {
"name": "config-parameters",
"description": "Parameters used by Multa CVM API and other applications",
"string_value": {
"AWS_ROOT_CA": {
"PREFERRED": "https://www.amazontrust.com/repository/AmazonRootCA1.pem",
"BACKUP": "https://www.amazontrust.com/repository/AmazonRootCA3.pem"
},
"POLICIES": {
"CvmGenericType": {
"name": "multa_backend_policy_dev"
}
},
"ATTRIBUTES": {
"CvmGenericType": [
{
"name": "creationDate"
},
{
"name": "version"
}
]
},
"DEVICE_AUTHORIZER_TOKEN_PAYLOAD_LENGTH": "2",
"DEVICE_AUTHORIZER_TOKEN_IDENTIFIER": "DeviceToken",
"DEVICE_AUTHORIZER_VALID_TOKENS": []
}
},
"lambda_layer": {
"identifier": "cvm-layer",
"layer_name": "layer",
"description": "Lambda Layer containing local Python's Virtual Environment needed for Multa Lambdas.",
"layer_runtimes": [
"PYTHON_3_7"
]
},
"iot_registry_cold_events_pipeline": {
"analytics_resource_name": "registry_events",
"retention_periods": {
"channel": 90,
"datastore": 90
},
"iot_rules": [
{
"rule_name": "registry_events",
"description": "IoT Rule for MQTT Broker Registry Events",
"rule_disabled": false,
"sql": "SELECT * FROM '$aws/events/thing/#'",
"aws_iot_sql_version": "2016-03-23"
}
]
}
}
}
}
}