@@ -29,21 +29,39 @@ async function readConfig(path) {
29
29
}
30
30
31
31
readConfig (" /ContentManagement/ContentManagementAggregator" );
32
+
33
+ // {
34
+ // "dev": {
35
+ // "db": {
36
+ // "username": "dev-user",
37
+ // "password": "secret-password"
38
+ // },
39
+ // "tags": ["dev", "database"],
40
+ // "ids": ["12", "42", "128"],
41
+ // "objs": [{ "entry": "1" }, { "entry": "2" }, { "entry": "3" }]
42
+ // },
43
+ // "prod": {
44
+ // "db": {
45
+ // "username": "prod-user",
46
+ // "password": "super-secret-password"
47
+ // }
48
+ // }
49
+ // };
32
50
```
33
51
34
52
The above assumes that the values in the path adhere to the JSON structure provided by [ aws-parameter-store-json-writer] ( https://github.com/MattLloyd101/aws-parameter-store-json-writer ) . e.g.
35
53
36
54
| Name | Type | Key ID | Value |
37
55
| ---- | ---- | ------ | ----- |
38
56
| ` /ContentManagement/ContentManagementAggregator/dev/db/username ` | String | - | dev-user |
39
- | ` /ContentManagement/ContentManagementAggregator/dev/db/password ` | SecureString | arn:aws:kms:us-east-2:123456789012: key /1a2b3c4d-1a2b-1a2b-1a2b-1a2b3c4d5e | secret-password |
57
+ | ` /ContentManagement/ContentManagementAggregator/dev/db/password ` | SecureString | arn:aws:kms:us-east-2:123456789012: key /1a2b3c4d-1a2b-1a2b-1a2b-1a2b3c4d5e | " secret-password" |
40
58
| ` /ContentManagement/ContentManagementAggregator/dev/tags ` | StringList | - | "dev", "database" |
41
59
| ` /ContentManagement/ContentManagementAggregator/dev/ids ` | StringList | - | "12", "42", "128" |
42
60
| ` /ContentManagement/ContentManagementAggregator/dev/objs/0/entry ` | String | - | "1" |
43
61
| ` /ContentManagement/ContentManagementAggregator/dev/objs/1/entry ` | String | - | "2" |
44
62
| ` /ContentManagement/ContentManagementAggregator/dev/objs/2/entry ` | String | - | "3" |
45
- | ` /ContentManagement/ContentManagementAggregator/prod/db/username ` | String | - | prod-user |
46
- | ` /ContentManagement/ContentManagementAggregator/prod/db/password ` | SecureString | arn:aws:kms:us-east-2:123456789012: key /1a2b3c4d-1a2b-1a2b-1a2b-1a2b3c4d5e | super-secret-password |
63
+ | ` /ContentManagement/ContentManagementAggregator/prod/db/username ` | String | - | " prod-user" |
64
+ | ` /ContentManagement/ContentManagementAggregator/prod/db/password ` | SecureString | arn:aws:kms:us-east-2:123456789012: key /1a2b3c4d-1a2b-1a2b-1a2b-1a2b3c4d5e | " super-secret-password" |
47
65
48
66
## Parameter Store Json Writer Configuration
49
67
0 commit comments