jegesh / python-sqs-listener

A simple wrapper for boto3 for listening, and sending, to an AWS SQS queue
Other
154 stars 72 forks source link

Unnecessarily fails when AWS credentials method is 'assume-role-with-web-identity' #54

Closed jindalrj closed 1 year ago

jindalrj commented 2 years ago

In EKS environments, each container on a single host can have its own credentials. Authentication is supported via a mechanism of 'serviceAccounts' (a kubernetes term).

boto3.Session().get_credentials().method returns assume-role-with-web-identity which is another form of iam role based credentials.

Current implementation only allows iam-role, assume-role but not 'assume-role-with-web-identity'.

LDderlee commented 1 year ago

is there any update on this issue? I have the exact same problem @jegesh

josemlp91 commented 1 year ago

https://github.com/jegesh/python-sqs-listener/pull/57/files