Cloud Experts Documentation

Configuring the Cluster Log Forwarder for CloudWatch Logs and STS

This content is authored by Red Hat experts, but has not yet been tested on every supported configuration.

This guide shows how to deploy the Cluster Log Forwarder operator and configure it to use STS authentication to forward logs to CloudWatch.

Prerequisites

  • A ROSA cluster (configured with STS)
  • The jq cli command
  • The aws cli command

Environment Setup

  1. Configure the following environment variables

    Change the cluster name to match your ROSA cluster and ensure you’re logged into the cluster as an Administrator. Ensure all fields are outputted correctly before moving on.

Prepare AWS Account

  1. Create an IAM Policy for OpenShift Log Forwarding

  2. Create an IAM Role trust policy for the cluster

  3. Attach the IAM Policy to the IAM Role

Deploy Operators

  1. Deploy the Cluster Logging operator

  2. Create a secret

Configure Cluster Logging

  1. Create a cluster log forwarding resource

  2. Create a cluster logging resource

Check AWS CloudWatch for logs

  1. Use the AWS console or CLI to validate that there are log streams from the cluster

    Note: If this is a fresh cluster you may not see a log group for application logs as there are no applications running yet.

Cleanup

  1. Delete the Cluster Log Forwarding resource

  2. Delete the Cluster Logging resource

  3. Detach the IAM Policy to the IAM Role

  4. Delete the IAM Role

  5. Delete the IAM Policy

    Only run this command if there are no other resources using the Policy

  6. Delete the CloudWatch Log Groups

Interested in contributing to these docs?

Collaboration drives progress. Help improve our documentation The Red Hat Way.

Red Hat logo LinkedIn YouTube Facebook Twitter

Products

Tools

Try, buy & sell

Communicate

About Red Hat

We’re the world’s leading provider of enterprise open source solutions—including Linux, cloud, container, and Kubernetes. We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Subscribe to our newsletter, Red Hat Shares

Sign up now
© 2026 Red Hat