diff --git a/.gitbook.yaml b/.gitbook.yaml index 522d24fef..bb883ebf1 100644 --- a/.gitbook.yaml +++ b/.gitbook.yaml @@ -98,4 +98,5 @@ redirects: installation/getting-started-with-fluent-bit: ./installation/downloads.md installation/requirements: ./installation/downloads.md installation/supported-platforms: ./installation/downloads.md - about/sandbox-and-lab-resources: /about/resources.md + about/sandbox-and-lab-resources: ./about/resources.md + installation/downloads/amazon-ec2: ./installation/downloads/linux/amazon-linux.md diff --git a/SUMMARY.md b/SUMMARY.md index 11d68768a..12245f3ba 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -28,7 +28,6 @@ * [Rocky Linux and Alma Linux ](installation/downloads/linux/alma-rocky.md) * [Ubuntu](installation/downloads/linux/ubuntu.md) * [Yocto embedded Linux](installation/downloads/linux/yocto-embedded-linux.md) - * [Amazon EC2](installation/downloads/amazon-ec2.md) * [Containers on AWS](installation/downloads/aws-container.md) * [Docker](installation/downloads/docker.md) * [Kubernetes](installation/downloads/kubernetes.md) diff --git a/installation/downloads/amazon-ec2.md b/installation/downloads/amazon-ec2.md deleted file mode 100644 index c92d02217..000000000 --- a/installation/downloads/amazon-ec2.md +++ /dev/null @@ -1,3 +0,0 @@ -# Amazon EC2 - -Learn how to install Fluent Bit and the AWS output plugins on Amazon Linux 2 using [AWS Systems Manager](https://github.com/aws/aws-for-fluent-bit/tree/master/examples/fluent-bit/systems-manager-ec2). diff --git a/installation/downloads/linux/amazon-linux.md b/installation/downloads/linux/amazon-linux.md index acadf9e74..6d285e127 100644 --- a/installation/downloads/linux/amazon-linux.md +++ b/installation/downloads/linux/amazon-linux.md @@ -1,21 +1,24 @@ # Amazon Linux -## Install on Amazon Linux - -Fluent Bit is distributed as the `fluent-bit` package and is available for the latest Amazon Linux 2 and Amazon Linux 2023. The following architectures are supported +Fluent Bit is distributed as the `fluent-bit` package and is available for Amazon Linux 2 and Amazon Linux 2023. The following architectures are supported: - x86_64 - aarch64 / arm64v8 -Amazon Linux 2022 is no longer supported. +## Install on Amazon EC2 + +To install Fluent Bit and related AWS output plugins on Amazon Linux 2 on EC2 using AWS Systems Manager, follow [this AWS guide](https://github.com/aws/aws-for-fluent-bit/tree/mainline/examples/fluent-bit/systems-manager-ec2). + +## General installation -The recommended secure deployment approach is to use the following instructions: +To install Fluent Bit on any Amazon Linux instance, follow these steps. -## Configure YUM + -The `fluent-bit` is provided through a Yum repository. To add the repository reference to your system, add a new file called `fluent-bit.repo` in `/etc/yum.repos.d/` with the following content: +1. Fluent Bit is provided through a Yum repository. To add the repository reference to your system, add a new file called `fluent-bit.repo` in `/etc/yum.repos.d/` with the following content: -### Amazon Linux 2 +{% tabs %} +{% tab title="Amazon Linux 2" %} ```text [fluent-bit] @@ -26,7 +29,8 @@ The `fluent-bit` is provided through a Yum repository. To add the repository ref enabled=1 ``` -### Amazon Linux 2023 +{% endtab %} +{% tab title="Amazon Linux 2023" %} ```text [fluent-bit] @@ -37,18 +41,23 @@ The `fluent-bit` is provided through a Yum repository. To add the repository ref enabled=1 ``` +{% endtab %} +{% endtabs %} + +{% hint style="info" %} + You should always enable `gpgcheck` for security reasons. All Fluent Bit packages are signed. -### Install +{% endhint %} -1. Ensure your [GPG key](../linux.md#gpg-key-updates) is up to date. -1. After your repository is configured, run the following command to install it: +2. Ensure your [GPG key](../linux.md#gpg-key-updates) is up to date. +3. After your repository is configured, run the following command to install it: ```shell sudo yum install fluent-bit ``` -1. Instruct `systemd` to enable the service: +4. Instruct `systemd` to enable the service: ```shell sudo systemctl start fluent-bit @@ -69,3 +78,5 @@ $ systemctl status fluent-bit ``` The default Fluent Bit configuration collect metrics of CPU usage and sends the records to the standard output. You can see the outgoing data in your `/var/log/messages` file. + +