By forwarding Astro data to AWS Cloudwatch, you can integrate Astro into your existing observability practices by analyzing information about your Deployments' performance with Cloudwatch monitoring tools. Currently, you can send the following data to AWS Cloudwatch:
- Airflow task logs
Complete the following setup to authenticate your Deployments to AWS Cloudwatch and forward your observability data to your AWS Cloudwatch instance.
Export task logs to AWS CloudWatch
You can forward Airflow task logs from a Deployment to AWS Cloudwatch using an IAM role or user. This allows you to view and manage task logs across all Deployments from a centralized observability plane.
- Your Deployment must run Astro Runtime 9.4+. See Upgrade Astro Runtime.
On AWS, create an IAM role and a trust policy that allows your Deployment to write logs to Cloudwatch. See Authorize Deployments to your cloud.
Create a permissions policy with the following configuration:
Set the following environment variables in your Deployment:
Value 2: The ARN for your IAM role. It should look similar to
If your CloudWatch instance is not in the same region as your Deployment, you must also set the following variable: