The logs in question in this doc are Airflow logs, NOT Astronomer platform logs from Houston, the Registry, etc. They’re the equivalent of deployment-level logs exposed in the ‘Logs’ tab of the Software UI and task logs rendered in the Airflow UI.
Prerequisites
To configure log forwarding from Fluentd to Amazon S3, you’ll need:- An existing S3 Bucket
- An EKS worker node autoscaling policy
Configure IAM policy and role
1. Create an AWS IAM policy with the following permissions The first step in configuring Airflow task logs to be forwarded to Amazon S3 is to create an IAM policy on AWS and grant it the following 3 roles:s3:ListBuckets3:PutObjects3:GetObject
Configure EKS worker node policy
1. Allow your EKS nodes to assume your new IAM role Find your EKS worker node autoscaling policy for your EKS cluster. The policyarn should look like: arn:aws:iam::123456789:policy/eks-worker-autoscaling-astronomer-5dyw2O4d20200730104135818400000008.
Add the following section to the policy:
Enable Fluentd to S3 in your values.yaml file
In your values.yaml file, add the following values: