@bifravst/aws-ssm-settings-helpers 1.0.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdk/Permissions.d.ts +6 -0
- package/dist/cdk/Permissions.js +7 -0
- package/dist/cdk/index.d.ts +1 -0
- package/dist/cdk/index.js +1 -0
- package/dist/settings.d.ts +1 -1
- package/package.json +12 -6
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { aws_iam as IAM } from 'aws-cdk-lib';
|
|
2
|
+
export const Permissions = (stack) => new IAM.PolicyStatement({
|
|
3
|
+
actions: ['ssm:GetParametersByPath', 'ssm:GetParameter'],
|
|
4
|
+
resources: [
|
|
5
|
+
`arn:aws:ssm:${stack.region}:${stack.account}:parameter/${stack.stackName}/*`,
|
|
6
|
+
],
|
|
7
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Permissions.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Permissions.js';
|
package/dist/settings.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export declare const put: (ssm: SSMClient) => ({ stackName, scope, context, }: {
|
|
|
26
26
|
/**
|
|
27
27
|
* Useful when depending on the parameter having version 1, e.g. for use in CloudFormation
|
|
28
28
|
*/
|
|
29
|
-
deleteBeforeUpdate?: boolean
|
|
29
|
+
deleteBeforeUpdate?: boolean;
|
|
30
30
|
}) => Promise<{
|
|
31
31
|
name: string;
|
|
32
32
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bifravst/aws-ssm-settings-helpers",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Helper functions written in TypeScript for storing and retrieving application settings in AWS SSM Parameter Store.",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
"types": "./dist/settings.d.ts",
|
|
9
9
|
"default": "./dist/settings.js"
|
|
10
10
|
}
|
|
11
|
+
},
|
|
12
|
+
"./cdk": {
|
|
13
|
+
"import": {
|
|
14
|
+
"types": "./dist/cdk/index.d.ts",
|
|
15
|
+
"default": "./dist/cdk/index.js"
|
|
16
|
+
}
|
|
11
17
|
}
|
|
12
18
|
},
|
|
13
19
|
"type": "module",
|
|
@@ -32,11 +38,11 @@
|
|
|
32
38
|
"author": "Nordic Semiconductor ASA | nordicsemi.no",
|
|
33
39
|
"license": "BSD-3-Clause",
|
|
34
40
|
"devDependencies": {
|
|
35
|
-
"@bifravst/eslint-config-typescript": "6.0.
|
|
41
|
+
"@bifravst/eslint-config-typescript": "6.0.23",
|
|
36
42
|
"@bifravst/prettier-config": "1.0.0",
|
|
37
|
-
"@commitlint/config-conventional": "19.
|
|
43
|
+
"@commitlint/config-conventional": "19.2.2",
|
|
38
44
|
"@types/aws-lambda": "8.10.137",
|
|
39
|
-
"@types/node": "20.12.
|
|
45
|
+
"@types/node": "20.12.7",
|
|
40
46
|
"husky": "9.0.11",
|
|
41
47
|
"tsx": "4.7.2"
|
|
42
48
|
},
|
|
@@ -79,13 +85,13 @@
|
|
|
79
85
|
"access": "public"
|
|
80
86
|
},
|
|
81
87
|
"files": [
|
|
82
|
-
"package-lock.json",
|
|
83
88
|
"dist",
|
|
84
89
|
"LICENSE",
|
|
85
90
|
"README.md"
|
|
86
91
|
],
|
|
87
92
|
"prettier": "@bifravst/prettier-config",
|
|
88
93
|
"peerDependencies": {
|
|
89
|
-
"@aws-sdk/client-ssm": "^3.
|
|
94
|
+
"@aws-sdk/client-ssm": "^3.556.0",
|
|
95
|
+
"aws-cdk-lib": "^2.137.0"
|
|
90
96
|
}
|
|
91
97
|
}
|