@cloud-copilot/iam-data 0.3.202409011-beta → 0.3.202409041
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/README.md
CHANGED
|
@@ -5,6 +5,9 @@ Contains IAM data for AWS actions, resources, and conditions based on IAM policy
|
|
|
5
5
|
|
|
6
6
|
Published in ESM and CommonJS.
|
|
7
7
|
|
|
8
|
+
## Data Updates
|
|
9
|
+
Data is scanned daily and a new version is published if there are changes. The version number is updated to reflect the date of the last update and the function `iamDataUpdatedAt()` returns the date of the last data update. This process is managed outside this repo.
|
|
10
|
+
|
|
8
11
|
## Usage
|
|
9
12
|
|
|
10
13
|
```bash
|
|
@@ -52,3 +55,5 @@ for(const serviceKey of serviceKeys) {
|
|
|
52
55
|
The version is numper is formatted as `major.minor.updatedAt`. The updatedAt is the date the data was last updated in the format `YYYYMMDDX` where `X` is a counter to enable deploying more than once per day if necessary. For example version `0.1.202408291` has data updated on August 29th, 2024.
|
|
53
56
|
|
|
54
57
|
The version can be accessed using the `iamDataVersion()` method.
|
|
58
|
+
|
|
59
|
+
There is also `iamDataUpdatedAt()` which returns the date the data was last updated.
|
|
@@ -6,18 +6,20 @@
|
|
|
6
6
|
"resourceTypes": [
|
|
7
7
|
{
|
|
8
8
|
"name": "cluster",
|
|
9
|
-
"required":
|
|
9
|
+
"required": false,
|
|
10
10
|
"conditionKeys": [],
|
|
11
11
|
"dependentActions": []
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
"name": "workgroup",
|
|
15
|
-
"required":
|
|
15
|
+
"required": false,
|
|
16
16
|
"conditionKeys": [],
|
|
17
17
|
"dependentActions": []
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
|
-
"conditionKeys": [
|
|
20
|
+
"conditionKeys": [
|
|
21
|
+
"redshift-data:session-owner-iam-userid"
|
|
22
|
+
],
|
|
21
23
|
"dependentActions": []
|
|
22
24
|
},
|
|
23
25
|
"cancelstatement": {
|
|
@@ -68,18 +70,20 @@
|
|
|
68
70
|
"resourceTypes": [
|
|
69
71
|
{
|
|
70
72
|
"name": "cluster",
|
|
71
|
-
"required":
|
|
73
|
+
"required": false,
|
|
72
74
|
"conditionKeys": [],
|
|
73
75
|
"dependentActions": []
|
|
74
76
|
},
|
|
75
77
|
{
|
|
76
78
|
"name": "workgroup",
|
|
77
|
-
"required":
|
|
79
|
+
"required": false,
|
|
78
80
|
"conditionKeys": [],
|
|
79
81
|
"dependentActions": []
|
|
80
82
|
}
|
|
81
83
|
],
|
|
82
|
-
"conditionKeys": [
|
|
84
|
+
"conditionKeys": [
|
|
85
|
+
"redshift-data:session-owner-iam-userid"
|
|
86
|
+
],
|
|
83
87
|
"dependentActions": []
|
|
84
88
|
},
|
|
85
89
|
"getstatementresult": {
|
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
"description": "Filters access by tag-value associated with the resource",
|
|
5
5
|
"type": "String"
|
|
6
6
|
},
|
|
7
|
+
"redshift-data:session-owner-iam-userid": {
|
|
8
|
+
"key": "redshift-data:session-owner-iam-userid",
|
|
9
|
+
"description": "Filters access by session owner iam userid",
|
|
10
|
+
"type": "String"
|
|
11
|
+
},
|
|
7
12
|
"redshift-data:statement-owner-iam-userid": {
|
|
8
13
|
"key": "redshift-data:statement-owner-iam-userid",
|
|
9
14
|
"description": "Filters access by statement owner iam userid",
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloud-copilot/iam-data",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.202409041",
|
|
4
4
|
"description": "AWS IAM Data",
|
|
5
5
|
"repository": "github:cloud-copilot/iam-data",
|
|
6
|
-
"updatedAt": "2024-09-
|
|
6
|
+
"updatedAt": "2024-09-04T04:46:32.834Z",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
9
|
"import": "./dist/esm/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
],
|
|
18
18
|
"types": "dist/cjs/index.d.ts",
|
|
19
19
|
"scripts": {
|
|
20
|
-
"test": "npx vitest --run",
|
|
20
|
+
"test": "npx vitest --run --coverage",
|
|
21
21
|
"build": "npx tsc -p tsconfig.cjs.json && npx tsc -p tsconfig.esm.json && ./postbuild.sh",
|
|
22
22
|
"prepare": "npm run build"
|
|
23
23
|
},
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"license": "GPL-3.0-or-later",
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.5.0",
|
|
32
|
+
"@vitest/coverage-v8": "^2.0.5",
|
|
32
33
|
"typescript": "^5.5.4",
|
|
33
34
|
"vitest": "^2.0.5"
|
|
34
35
|
}
|