Prepare database
In this lab, we use available data on AWS Cost & Usage Report.
The first step, to build a database for the purpose of querying from Amazon Athena through AWS Glue, we need to have data based on the AWS Cost & Usage Report. However, it will take at least 24h to get this report, so we have prepared the report files.
- Access AWS Management Console

- In the S3 interface
- Select General purpose buckets
- Select Create bucket

- In the Create bucket interface
- Bucket namespace select Account Regional namespace (recommended)
- Bucket name, enter
cost-and-usage-analysis

- Select Create bucket

- In cost-and-usage-analysis-xxxxxxxxxx-us-east-1-an bucket
- Create a folder to store data by selecting Create folder

- In the Create folder interface
- Folder name, enter
Monthly-Report - Select Create folder

- We proceed to Upload data files

- Select the downloaded data files
- Select Add files
- Select the data files

- Select Upload

- When the upload status changes to Succeeded
