Configure AWS IAM identities

In AWS Identity and Access Management (IAM), an identity represents a human user or programmatic workload that AWS can authenticate and authorize to perform actions. The Wazuh module for AWS requires authentication and authorization through an IAM identity to integrate with supported AWS services.

The following sections describe how to create an IAM user group, create an IAM user with access credentials, and add the user to the group.

Create an IAM user group

  1. On your AWS console, search for iam in the search bar and click IAM from the results.

    Search IAM
  2. Go to IAM user groups and click Create group to create a new group.

    IAM user groups
  3. Assign a name for the group.

    Create group
  4. Scroll down, and click Create user group.

    Create group 2
  5. Confirm the group has been successfully created.

    Confirm group creation

Create an IAM user

Wazuh requires an AWS IAM user with the necessary permissions to collect log data from the different AWS services. Follow these steps to create a new IAM user in your AWS environment and obtain the access credentials.

  1. Create a new IAM user and add it to a user group:

    1. On your AWS console, navigate to Services > IAM > Users > Create user.

      Create user
    2. Assign a username and click Next.

      Create user - next
    3. Assign the user to the previously created group and click Next to proceed.

      Add user to group
    4. Review the selected options and click Create user.

      Review and create user
    5. Confirm the user creation.

      Confirm user creation
  2. Obtain the necessary access credentials for the IAM user.

    1. Click the IAM user you created, go to Security credentials, scroll down to Access keys, and click Create access key.

      Create access key from Security credentials
    2. Select and confirm the Command Line Interface (CLI) use case and click Next.

      Confirm CLI
    3. Assign a description tag value and click Create access key.

      Create access key
    4. Save the access credentials. You use them later to configure the Wazuh module for AWS. If you don't copy the credentials before you click Done, you can't recover them later. However, you can create a new secret access key.

      Save access keys