aws / amazon-cloudwatch-logs-for-fluent-bit

A Fluent Bit output plugin for CloudWatch Logs
Apache License 2.0
172 stars 49 forks source link

added support to build cloudwatch logs plugin for Windows #269

Closed rawahars closed 2 years ago

rawahars commented 2 years ago

Summary

In order to build Windows artifacts, we have added a separate target for the same in Makefile. We are using a cross-compiler to build Windows artifacts.

Additionally, we have added the same to Github action on PR.

To ensure that customers building their own plugins can build Windows artifacts for different architectures and using different cross-compilers, the build settings are customisable.

Please note that we have not modified the existing targets or added Windows target to build target. This is because in order to build Windows artifacts, we need to install cross-compiler which by default is not available on most runtimes. Therefore, adding a separate Windows target ensures backward-compatibility.

Testing

Installed the cross-compiler on an Ubuntu machine and then ran make windows-release Then tested the built plugin with fluent-bit on Windows instance to ensure that the logs are received in Cloudwatch.

Issue #, if available:

Description of changes:

added a target for Windows release in makefile

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.