Installing dependencies

Note

The integration with AWS S3 can be configured in the Wazuh manager (which also behaves as an agent) or directly in a Wazuh agent. This choice merely depends on how you decide to access your AWS infrastructure in your environment.

Warning

The Wazuh manager includes all dependencies installed, these steps are only necessary when configuring the integration in a Wazuh agent.

Python

The AWS S3 integration requires python 3. It is compatible with python versions from 3.6.0 to 3.9.5. Future python releases should maintain compatibility although it cannot be guaranteed.

  1. For CentOS/RHEL/Fedora operating systems:

# yum update && yum install python3
  1. For Debian/Ubuntu operating systems:

# apt-get update && apt-get install python3

Pip

The required modules can be installed with Pip, the Python package manager. Most of UNIX distributions have this tool available in their software repositories:

  1. For CentOS/RHEL/Fedora operating systems:

# yum update && yum install python3-pip
  1. For Debian/Ubuntu operating systems:

# apt-get update && apt-get install python3-pip

Boto3

Boto3 is the official package supported by Amazon to manage AWS resources. It will be used to download the log messages from the S3 Bucket or the log groups for the CloudWatch Logs service integration. The module is compatible with boto3 from 1.13.1 to 1.17.76. Future boto3 releases should maintain compatibility although it cannot be guaranteed.

To install boto3, execute the following command:

# pip3 install boto3==1.17.76