3 ms·
It appears this was specifically made for use with IAM key/secrets; you should consider making these optional so that boto3 can pick up the corresponding enviro
by politelemon 5y ago
It appears this was specifically made for use with IAM key/secrets; you should consider making these optional so that boto3 can pick up the corresponding environment variables itself. And you could also allow for temporary IAM credentials keys+secret+session.
https://github.com/dineshsonachalam/Lucid-Dynamodb/blob/master/LucidDynamodb/operations.py#L5-L14 https://github.com/dineshsonachalam/Lucid-Dynamodb/blob/mast...
- orf 5y agoThe code as it stands is of course really dumb, but I think you can just pass `None` to each of those and have boto3 use the standard credential precedence. On top of that they have mutable keyword arguments and generally quite terrible code: no exceptions thrown, just logging.error(), `if len(x)` rather than `if x`, etc etc.