Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Worker does not have permissions to enqueue work #17

Closed
tjanczuk opened this issue Jan 23, 2024 · 0 comments
Closed

Worker does not have permissions to enqueue work #17

tjanczuk opened this issue Jan 23, 2024 · 0 comments

Comments

@tjanczuk
Copy link
Member

Current

When enqueueing work from within the worker itself, we get a permission error:

AccessDenied: User: arn:aws:sts::182606571448:assumed-role/edgar-us-west-2-main-worker/edgar-main-worker is not authorized to perform: sqs:listqueues on resource: arn:aws:sqs:us-west-2:182606571448: because no identity-based policy allows the sqs:listqueues action
    at throwDefaultError (/var/task/node_modules/@smithy/smithy-client/dist-cjs/default-error-handler.js:8:22)
    at /var/task/node_modules/@smithy/smithy-client/dist-cjs/default-error-handler.js:18:39
    at de_ListQueuesCommandError (/var/task/node_modules/@aws-sdk/client-sqs/dist-cjs/protocols/Aws_json1_0.js:797:20)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /var/task/node_modules/@smithy/middleware-serde/dist-cjs/deserializerMiddleware.js:7:24
    at async /var/task/node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthMiddleware.js:14:20
    at async /var/task/node_modules/@smithy/middleware-retry/dist-cjs/retryMiddleware.js:27:46
    at async /var/task/node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js:7:26

Expected

Worker has IAM permissions to enqueue work for itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant