@medplum/bot-layer 2.0.16
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
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Medplum Bot Layer
|
|
2
|
+
|
|
3
|
+
Medplum bots can run in [AWS Lambdas](https://aws.amazon.com/lambda/). When running in lambdas, bots can use [AWS Lambda Layers](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) for pre-built dependencies and configuration.
|
|
4
|
+
|
|
5
|
+
This package defines the packages in the default AWS Lambda Layer.
|
|
6
|
+
|
|
7
|
+
Current packages:
|
|
8
|
+
|
|
9
|
+
- [`@medplum/core`](https://www.npmjs.com/package/@medplum/core)
|
|
10
|
+
- [`form-data`](https://www.npmjs.com/package/form-data)
|
|
11
|
+
- [`node-fetch`](https://www.npmjs.com/package/node-fetch)
|
|
12
|
+
- [`pdfmake`](https://www.npmjs.com/package/pdfmake)
|
|
13
|
+
- [`ssh2`](https://www.npmjs.com/package/ssh2)
|
|
14
|
+
- [`ssh2-sftp-client`](https://www.npmjs.com/package/ssh2-sftp-client)
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
To use the Medplum Bot Layer in your own Bot packages, add `@medplum/bot-layer` as a dependency:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm i @medplum/bot-layer
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Deployment
|
|
25
|
+
|
|
26
|
+
For more details on how to build and use, refer to `/scripts/deploy-bot-layer.sh`.
|
|
27
|
+
|
|
28
|
+
## References
|
|
29
|
+
|
|
30
|
+
- [Deploy Node.js Lambda functions with .zip file archives](https://docs.aws.amazon.com/lambda/latest/dg/nodejs-package.html)
|
|
31
|
+
- [Creating and sharing Lambda layers](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html)
|
|
32
|
+
- [Using layers with your Lambda function](https://docs.aws.amazon.com/lambda/latest/dg/invocation-layers.html)
|
|
33
|
+
- [AWS CLI publish-layer-version](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lambda/publish-layer-version.html)
|
|
34
|
+
- [Lambda layers node_modules](https://stackoverflow.com/questions/53788753/lambda-layers-node-modules)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "module",
|
|
3
|
+
"name": "@medplum/bot-layer",
|
|
4
|
+
"version": "2.0.16",
|
|
5
|
+
"description": "Medplum Bot Lambda Layer",
|
|
6
|
+
"author": "Medplum <hello@medplum.com>",
|
|
7
|
+
"license": "Apache-2.0",
|
|
8
|
+
"homepage": "https://www.medplum.com/",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/medplum/medplum.git",
|
|
12
|
+
"directory": "packages/bot-layer"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@medplum/core": "*",
|
|
16
|
+
"form-data": "4.0.0",
|
|
17
|
+
"node-fetch": "2.6.9",
|
|
18
|
+
"pdfmake": "0.2.7",
|
|
19
|
+
"ssh2": "1.11.0",
|
|
20
|
+
"ssh2-sftp-client": "9.0.4"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@types/node-fetch": "2.6.3"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"@medplum/core": "*",
|
|
27
|
+
"form-data": "^4.0.0",
|
|
28
|
+
"node-fetch": "^2.6.9",
|
|
29
|
+
"pdfmake": "^0.2.7",
|
|
30
|
+
"ssh2": "^1.11.0",
|
|
31
|
+
"ssh2-sftp-client": "^9.0.4"
|
|
32
|
+
},
|
|
33
|
+
"keywords": [
|
|
34
|
+
"medplum",
|
|
35
|
+
"aws",
|
|
36
|
+
"lambda",
|
|
37
|
+
"bot",
|
|
38
|
+
"layer"
|
|
39
|
+
]
|
|
40
|
+
}
|