Database Check

We create S3 bucket to store query results.

  1. Access to S3
  • Select Bucket
  • Select Create bucket

Prerequisite

  1. In the Create bucket interface
  • Bucket name, enter cost-and-usage-query-results

Prerequisite

  1. Select Create bucket

Prerequisite

  1. Select cost-and-usage-query-results the newly created bucket

Prerequisite

  1. Create a folder to store query data
  • Select Create folder

Prerequisite

  1. Create a folder
  • Folder name, enter Athena-Query-Results
  • Select Create folder

Prerequisite

  1. Finish creating the folder

Prerequisite

  1. Access AWS Console Management
  • Find Athena
  • Select Athena

Prerequisite

  1. To manipulate the data table, we need to configure where to save the query results on S3.
  • Select Settings

Prerequisite

  1. Select Manage

Prerequisite

  1. Choose the S3 path to store

Prerequisite

  1. Then select Edit

Prerequisite

  1. Check and execute the query
  • Data Source, select AwsDataCatalog
  • Database, select costmaster
  • Table, select monthly_report
  • Execute the query with the following command: the table data is saved to Amazon Athena’s metastore.
MSCK REPAIR TABLE monthly_report;
  • Select Run
  • Complete the query Query successful

Prerequisite

  1. Perform a system preview to test the ability to query data tables on AWS Glue
  • Select monthly_report table
  • Select Preview Table
SELECT * FROM "costmaster"."monthly_report"
LIMIT 10;

Prerequisite