@zintrust/client-rds-data 0.4.0 → 0.4.4
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 +37 -0
- package/package.json +14 -5
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# @zintrust/client-rds-data
|
|
2
|
+
|
|
3
|
+
AWS RDS Data API and Secrets Manager helpers for ZinTrust.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm i @zintrust/client-rds-data @aws-sdk/client-rds-data @aws-sdk/client-secrets-manager
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import RdsData from '@zintrust/client-rds-data';
|
|
15
|
+
|
|
16
|
+
const rds = await RdsData.getRdsDataClient('us-east-1');
|
|
17
|
+
const secrets = await RdsData.getSecretsManagerClient('us-east-1');
|
|
18
|
+
|
|
19
|
+
await rds.executeStatement({
|
|
20
|
+
resourceArn: process.env.AWS_RDS_RESOURCE_ARN,
|
|
21
|
+
secretArn: process.env.AWS_RDS_SECRET_ARN,
|
|
22
|
+
database: 'app',
|
|
23
|
+
sql: 'select 1',
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
const secret = await secrets.getSecretValue('my/service/secret');
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## What it provides
|
|
30
|
+
|
|
31
|
+
- Lazy ESM loading for AWS SDK RDS Data API support
|
|
32
|
+
- Lazy ESM loading for AWS Secrets Manager support
|
|
33
|
+
- ZinTrust-native configuration and error handling
|
|
34
|
+
|
|
35
|
+
## License
|
|
36
|
+
|
|
37
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zintrust/client-rds-data",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
|
+
"description": "AWS RDS Data API and Secrets Manager helpers for ZinTrust.",
|
|
4
5
|
"private": false,
|
|
5
6
|
"type": "module",
|
|
6
7
|
"main": "./dist/index.js",
|
|
@@ -18,18 +19,26 @@
|
|
|
18
19
|
"node": ">=20.0.0"
|
|
19
20
|
},
|
|
20
21
|
"dependencies": {
|
|
21
|
-
"@aws-sdk/client-rds-data": "^3.
|
|
22
|
-
"@aws-sdk/client-secrets-manager": "^3.
|
|
22
|
+
"@aws-sdk/client-rds-data": "^3.1009.0",
|
|
23
|
+
"@aws-sdk/client-secrets-manager": "^3.1009.0"
|
|
23
24
|
},
|
|
24
25
|
"peerDependencies": {
|
|
25
|
-
"@zintrust/core": "^0.4.
|
|
26
|
+
"@zintrust/core": "^0.4.4"
|
|
26
27
|
},
|
|
27
28
|
"overrides": {
|
|
28
|
-
"fast-xml-parser": "^5.
|
|
29
|
+
"fast-xml-parser": "^5.5.7",
|
|
30
|
+
"flatted": "^3.4.2"
|
|
29
31
|
},
|
|
30
32
|
"publishConfig": {
|
|
31
33
|
"access": "public"
|
|
32
34
|
},
|
|
35
|
+
"keywords": [
|
|
36
|
+
"zintrust",
|
|
37
|
+
"aws",
|
|
38
|
+
"rds-data",
|
|
39
|
+
"aurora",
|
|
40
|
+
"typescript"
|
|
41
|
+
],
|
|
33
42
|
"scripts": {
|
|
34
43
|
"build": "tsc -p tsconfig.json",
|
|
35
44
|
"prepublishOnly": "npm run build"
|