diff --git a/aws-flb-kinesis.yaml b/aws-flb-kinesis.yaml new file mode 100644 index 00000000000..661e6969d84 --- /dev/null +++ b/aws-flb-kinesis.yaml @@ -0,0 +1,44 @@ +package: + name: aws-flb-kinesis + version: 1.10.2 + epoch: 0 + description: A Fluent Bit output plugin for Kinesis Streams. + copyright: + - license: Apache-2.0 + +environment: + contents: + packages: + - wolfi-baselayout + - busybox + - build-base + - go + - ca-certificates-bundle + +pipeline: + - uses: git-checkout + with: + repository: https://github.com/aws/amazon-kinesis-streams-for-fluent-bit + tag: v${{package.version}} + expected-commit: 4772e6c023b14d8925ecb4328dfbe07148a990e8 + + - runs: | + mkdir -p ${{targets.destdir}}/usr/bin + go build -buildmode c-shared -o ${{targets.destdir}}/usr/bin/kinesis.so ./ + +subpackages: + - name: "aws-flb-kinesis-compat" + description: "Compatibility package to place binaries in the location expected by AWS for Fluent Bit" + pipeline: + - runs: | + # The AWS for Fluent Bit expects the .so libraries to be in /fluent-bit + mkdir -p "${{targets.subpkgdir}}"/fluent-bit + ln -sf /usr/bin/kinesis.so ${{targets.subpkgdir}}/fluent-bit/kinesis.so + - uses: strip + +update: + enabled: true + github: + identifier: aws/amazon-kinesis-streams-for-fluent-bit + strip-prefix: v + use-tag: true diff --git a/packages.txt b/packages.txt index 890668e74ec..7011901d062 100644 --- a/packages.txt +++ b/packages.txt @@ -884,4 +884,5 @@ pulseaudio php-redis php-amqp pgcat -valgrind \ No newline at end of file +valgrind +aws-flb-kinesis \ No newline at end of file