@walkeros/server-destination-aws 0.4.2 → 0.5.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/README.md +56 -14
- package/dist/dev.js +1 -1
- package/dist/dev.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/schemas.js +1 -1
- package/dist/schemas.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<p align="left">
|
|
2
|
-
<a href="https://
|
|
3
|
-
<img title="elbwalker" src="https://www.
|
|
2
|
+
<a href="https://www.walkeros.io">
|
|
3
|
+
<img title="elbwalker" src="https://www.walkeros.io/img/elbwalker_logo.png" width="256px"/>
|
|
4
4
|
</a>
|
|
5
5
|
</p>
|
|
6
6
|
|
|
@@ -22,27 +22,60 @@ and analysis.
|
|
|
22
22
|
npm install @walkeros/server-destination-aws
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
##
|
|
25
|
+
## Quick Start
|
|
26
|
+
|
|
27
|
+
Configure in your Flow JSON:
|
|
28
|
+
|
|
29
|
+
```json
|
|
30
|
+
{
|
|
31
|
+
"version": 1,
|
|
32
|
+
"flows": {
|
|
33
|
+
"default": {
|
|
34
|
+
"server": {},
|
|
35
|
+
"destinations": {
|
|
36
|
+
"firehose": {
|
|
37
|
+
"package": "@walkeros/server-destination-aws",
|
|
38
|
+
"config": {
|
|
39
|
+
"settings": {
|
|
40
|
+
"firehose": {
|
|
41
|
+
"streamName": "your-firehose-stream-name",
|
|
42
|
+
"region": "eu-central-1"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
```
|
|
26
52
|
|
|
27
|
-
|
|
53
|
+
Or programmatically:
|
|
28
54
|
|
|
29
55
|
```typescript
|
|
30
|
-
import {
|
|
56
|
+
import { startFlow } from '@walkeros/collector';
|
|
31
57
|
import { destinationFirehose } from '@walkeros/server-destination-aws';
|
|
32
58
|
|
|
33
|
-
elb
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
region: 'eu-central-1',
|
|
59
|
+
const { elb } = await startFlow({
|
|
60
|
+
destinations: [
|
|
61
|
+
{
|
|
62
|
+
destination: destinationFirehose,
|
|
38
63
|
config: {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
64
|
+
settings: {
|
|
65
|
+
firehose: {
|
|
66
|
+
streamName: 'your-firehose-stream-name',
|
|
67
|
+
region: 'eu-central-1',
|
|
68
|
+
config: {
|
|
69
|
+
credentials: {
|
|
70
|
+
accessKeyId: 'your-access-key-id',
|
|
71
|
+
secretAccessKey: 'your-secret-access-key',
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
42
75
|
},
|
|
43
76
|
},
|
|
44
77
|
},
|
|
45
|
-
|
|
78
|
+
],
|
|
46
79
|
});
|
|
47
80
|
```
|
|
48
81
|
|
|
@@ -63,6 +96,15 @@ The `firehose` object has the following properties:
|
|
|
63
96
|
| `region` | `string` | AWS region for the Firehose service | No | `'us-east-1'` |
|
|
64
97
|
| `config` | `FirehoseClientConfig` | AWS SDK client configuration options | No | `{ credentials: awsCredentials }` |
|
|
65
98
|
|
|
99
|
+
## Type Definitions
|
|
100
|
+
|
|
101
|
+
See [src/types/](./src/types/) for TypeScript interfaces.
|
|
102
|
+
|
|
103
|
+
## Related
|
|
104
|
+
|
|
105
|
+
- [Website Documentation](https://www.walkeros.io/docs/destinations/server/aws/)
|
|
106
|
+
- [Destination Interface](../../../core/src/types/destination.ts)
|
|
107
|
+
|
|
66
108
|
## Contribute
|
|
67
109
|
|
|
68
110
|
Feel free to contribute by submitting an
|