-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added support for building Windows artifacts
In order to build Windows artifacts, we have added a target for the same in Makefile. We are using a cross-compiler to build Windows artifacts. Also, we have added this target in the Github action. To ensure that customers building their own plugins can build Windows binaries for different architectures and using different cross-compilers, these build settings are customizable.
- Loading branch information
1 parent
639cd18
commit 955c4b4
Showing
3 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,28 @@ A Fluent Bit output plugin for Amazon Kinesis Data Streams. | |
|
||
If you think you’ve found a potential security issue, please do not post it in the Issues. Instead, please follow the instructions [here](https://aws.amazon.com/security/vulnerability-reporting/) or email AWS security directly at [[email protected]](mailto:[email protected]). | ||
|
||
### Usage | ||
|
||
Run `make` to build `./bin/kinesis.so`. Then use with Fluent Bit: | ||
``` | ||
./fluent-bit -e ./kinesis.so -i cpu \ | ||
-o kinesis \ | ||
-p "region=us-west-2" \ | ||
-p "stream=test-stream" | ||
``` | ||
|
||
For building Windows binaries, we need to install `mingw-64w` for cross-compilation. The same can be done using- | ||
``` | ||
sudo apt-get install -y gcc-multilib gcc-mingw-w64 | ||
``` | ||
After this step, run `make windows-release`. Then use with Fluent Bit on Windows: | ||
``` | ||
./fluent-bit.exe -e ./kinesis.dll -i dummy ` | ||
-o kinesis ` | ||
-p "region=us-west-2" ` | ||
-p "stream=test-stream" | ||
``` | ||
|
||
### Plugin Options | ||
|
||
* `region`: The region which your Kinesis Data Stream is in. | ||
|