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

[issue #54] Fixed auth compatibility with EKS serviceAccount roles #57

Closed josemlp91 closed 1 year ago

josemlp91 commented 1 year 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 allowsiam-role, assume-role but not assume-role-with-web-identity.