This is a small TS library which wraps the aws-sdk to assist in generating AWS Credential Reports.
What's Wrong With the AWS-SDK?
Nothing; but it could be made easier to work with.
First, the SDK includes two methods to create credential reports:
GetCredentialReport. Its an asynchronous operation, and while the time between generation and
retrieval isn't usually too long, its still something callers need to think about.
Moreover, there's no method provided to determine the "status" of a "credential report generation" operation; so, if you were to call Generate, followed by Get, and there's no credential report ready, you'd need to retry. This library handles the retrying for you.
Finally, you're given it back as a CSV-encoded buffer. This library fixes that for you; it'll parse the CSV, and return back a useful data structure.