Skip to content

airflow creation issue

0

2026-02-25T12:40:40.257+05:30 arn:aws:sts::345289097076:assumed-role/badger-airflow-exec-role/AmazonMWAA-airflow is not authorized 2026-02-25T12:40:40.257+05:30 to perform: sqs:getqueueattributes on resource: 2026-02-25T12:40:40.257+05:30 arn:aws:sqs:us-east-1:600069267456:airflow-celery-6adb38a7-7874-4fe6-88f1-3da89d266e03 because no

arn:aws:sqs:us-east-1:600069267456:airflow-celery-6adb38a7-7874-4fe6-88f1-3da89d266e03 because no 2026-02-25T12:40:40.257+05:30 identity-based policy allows the sqs:getqueueattributes action 2026-02-25T12:40:40.257+05:30 [2026-02-25 07:10:40 +0000] [37] [INFO] Handling signal: term 2026-02-25T12:40:40.257+05:30 [2026-02-25 07:10:40 +0000] [40] [INFO] Worker exiting (pid: 40) 2026-02-25T12:40:40.257+05:30 [2026-02-25 07:10:40 +0000] [41] [INFO] Worker exiting (pid: 41) 2026-02-25T12:40:40.358+05:30 [2026-02-25 07:10:40 +0000] [37] [INFO] Shutting down: 2026-02-25T12:40:40.759+05:30 /usr/local/lib/python3.12/multiprocessing/resource_tracker.py:279: UserWarning: resource_tracker: There appear to be 3 leaked shared_memory objects to clean up at shutdown 2026-02-25T12:40:40.759+05:30 warnings.warn('resource_tracker: There appear to be %d '

got this error in airflow

  • This isn't a support queue.

1 Answer
0

Hi Techie,

Thanks for your question to re:Post.

When working with Amazon Managed Workflows for Apache Airflow (MWAA), your MWAA execution role requires certain permissions for Amazon Simple Queue Service (Amazon SQS). Check your MWAA execution role that it includes these permissions... Amazon MWAA execution role.

Here is an example policy to your MWAA execution role with allow statements needed for SQS. You will want to evaluate your own permission needs before applying any policies for the principle of least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "sqs:GetQueueAttributes",
        "sqs:GetQueueUrl",
        "sqs:SendMessage",
        "sqs:ReceiveMessage",
        "sqs:DeleteMessage"
      ],
      "Resource": "arn:aws:sqs:us-east-1:[accountid]:airflow-celery-*"
    }
  ]
}

Steps

  1. Go to IAM Console
  2. Find role: badger-airflow-exec-role
  3. Add the policy above (or attach AmazonMWAAExecutionRolePolicy if not already attached)
  4. Wait a few minutes for MWAA to pick up the changes

Documentation

Amazon MWAA execution role requirements - Lists all required permissions for the execution role, including SQS access for Celery workers.

The Celery queue (airflow-celery-*) is created automatically by MWAA for task distribution between workers. Your execution role needs permission to interact with it.

Thank you!

AWS
EXPERT
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.