The AWS Destination package allows you to send events to various AWS services using walkerOS. Currently, it supports AWS Firehose, with plans to add more services like SNS, SQS, CloudWatch, and Lambda.
This package is designed to work seamlessly with walkerOS, enabling you to integrate AWS services for efficient event handling and data processing.
To get started, install the package via npm:
npm install @elbwalker/destination-node-aws
Configure the AWS destination with your AWS credentials and settings. Below is an example configuration:
import destinationAWS from '@elbwalker/destination-node-aws';
const config = {
firehose: {
streamName: 'your-firehose-stream-name', // Required
region: 'eu-central-1',
credentials: {
accessKeyId: 'your-access-key-id',
secretAccessKey: 'your-secret-access-key',
},
},
};
elb('walker destination', destinationAWS, config);
-
region
: AWS region where your services are hosted. -
credentials
: AWS credentials for authentication, containingaccessKeyId
andsecretAccessKey
.
To configure AWS Firehose, use the following example:
const firehoseConfig = {
streamName: 'your-firehose-stream-name',
region: 'eu-central-1',
credentials: {
accessKeyId: 'your-access-key-id',
secretAccessKey: 'your-secret-access-key',
},
};
elb('walker destination', destinationAWS, { firehose: firehoseConfig });
You can add the destination multiple times, each with one AWS service configured, or once with all services combined. This flexibility allows you to use different credentials or handle error handling individually.
Here is a simple example to demonstrate how to use the AWS destination with walkerOS:
import destinationAWS from '@elbwalker/destination-node-aws';
const config = {
firehose: {
streamName: 'your-firehose-stream-name',
region: 'eu-central-1',
credentials: {
accessKeyId: 'your-access-key-id',
secretAccessKey: 'your-secret-access-key',
},
},
};
elb('walker destination', destinationAWS, config);
Feel free to contribute by submitting an issue, starting a discussion, or getting in contact.
This project is licensed under the MIT License. See the LICENSE file for details.
For more detailed information and examples, please refer to the documentation.