Cost component
Workload Discovery on AWS cost component
You can create an AWS CUR in AWS Billing and Cost Management and Cost Management. This publishes a ParquetCostAndUsageReportBucket Amazon S3 bucket. The web UI makes requests to the AWS AppSync endpoint that invokes the Cost Lambda function. The function sends predefined queries to Amazon Athena that return estimated cost information from AWS CUR.
Due to the size of the AWS CUR, the responses from Amazon Athena can be very large. The solution stores the results in the AthenaResultsBucket Amazon S3 bucket and paginates the results back to the web UI. The lifecycle policy configured on this bucket removes items that are more than seven days old.