Preparation

Preparation

IAM role general

We’ll create a few general iam roles:

  1. Access the IAM console:

    • Access the IAM console.
    • On the left navigation bar, select Roles
    • Select Create role.
  2. Create role for Glue.

    • Select AWS Service.
    • Enter Glue in “Use case”.
    • Select Next.
    • Add permission we need
    • Enter Role name
    • Select Create role.

    Image

  3. Similar with CloudFormation

    Image

Athena Spark

CloudFormation Template

Before starting this workshop, you need to create the required AWS resources. To do this, we provide AWS CloudFormation template to create a stack that contains the resources. When you create the stack, AWS creates a number of resources in your account.

Image

  • Choose Next
  • Choose your CloudFormation role in Permission

Image

  • Choose your Stack failure options
  • Choose Next

Image

  • Enter your Stack name

  • Choose Next

  • Choose Submit

Image

Image

Upload dataset & create table

  1. Upload dataset:

    • You download dataset Financial Sample
    • Upload to your bucket created by CloudFormation with path: financial/Finacial.csv

    Image

    Image

  2. Create Database, Table in Glue Catalog

    Image

    • Access the Glue Crawler console
    • Choose Add Crawler
    • Enter crawler information

    Image

    • Choose your crawler
    • Choose run Image
  3. Check data in Athena

Athena Federation

RDS

  • Access the RDS databases

  • Choose Create Database

  • In this part you can use default VPC

    Image

    Image

    Image

  • Secret when you use Secret Manager

    Image