jegesh / python-sqs-listener

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

support of shared-credentials-file #62

Open ViktorZak opened 1 year ago

ViktorZak commented 1 year ago

HI, why shared-credentials-file is not valid method? if ( not os.environ.get('AWS_ACCOUNT_ID', None) and not (boto3.Session().get_credentials().method in ['iam-role', 'assume-role', 'assume-role-with-web-identity']) ): raise EnvironmentError('Environment variableAWS_ACCOUNT_IDnot set and no role found.')