PynamoDB icon indicating copy to clipboard operation
PynamoDB copied to clipboard

Allow for option for unsigned request

Open treble-maker123 opened this issue 1 year ago • 0 comments

When developing locally, I have a local instance of DynamoDB running that does not looking at the signature of the request. However, we still need to have valid AWS credentials on our local computer in order for PynamoDB to work, otherwise it would throw,

botocore.exceptions.ClientError: An error occurred (InvalidClientTokenId) when calling the AssumeRole operation: The security token included in the request is invalid.

The configuration should have the option to allow for unsigned request (e.g. https://github.com/boto/boto3/issues/1200) so we don't need to maintain valid credentials on our computers to test something that does not require any credentials.

Happy to raise a PR if you guys think this is helpful. I think it's just a matter of being able to pipe that option to https://github.com/pynamodb/PynamoDB/blob/master/pynamodb/connection/base.py#L576-L581

treble-maker123 avatar Oct 13 '23 13:10 treble-maker123