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.

You can download the data at Cost and Usage Analysis. Prerequisite

  1. Access AWS Management Console
  • Search S3
  • Select S3

Prerequisite

  1. In the S3 interface
  • Select General purpose buckets
  • Select Create bucket

Prerequisite

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

Prerequisite

  1. Select Create bucket

Prerequisite

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

Prerequisite

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

Prerequisite

  1. We proceed to Upload data files

Prerequisite

  1. Select the downloaded data files
  • Select Add files
  • Select the data files

Prerequisite

  1. Select Upload

Prerequisite

  1. When the upload status changes to Succeeded

Prerequisite