Boto3 is the python library, that can be used in lambda functions and generate credentials through STS.