Can't view task logs in Airflow web UI after changing secrets backend

0

After switching the alternate secrets backend to the Parameter store I was able to retrieve connections/variables from the SSM Parameter store, but the only issue was the task logs page in the Airflow webserver UI was stuck in a loading state. I can still view task logs from the Cloudwatch portal.

Enter image description here

Airflow config

secrets.backend	airflow.providers.amazon.aws.secrets.systems_manager.SystemsManagerParameterStoreBackend
secrets.backend_kwargs	{"connections_prefix" : "airflow/connections", "variables_prefix" : "airflow/variables"}

SystemsManager policy attached to execution role

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": "ssm:*",
            "Resource": "arn:aws:ssm:us-east-1:<account_id>:parameter/airflow*"
        }
    ]
}
Sri
已提問 7 個月前檢視次數 75 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南